Deprecated: Return type of FS_Key_Value_Storage::offsetExists($k) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ajax-search-for-woocommerce/fs/lib/includes/managers/class-fs-key-value-storage.php on line 309

Deprecated: Return type of FS_Key_Value_Storage::offsetGet($k) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ajax-search-for-woocommerce/fs/lib/includes/managers/class-fs-key-value-storage.php on line 317

Deprecated: Return type of FS_Key_Value_Storage::offsetSet($k, $v) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ajax-search-for-woocommerce/fs/lib/includes/managers/class-fs-key-value-storage.php on line 301

Deprecated: Return type of FS_Key_Value_Storage::offsetUnset($k) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ajax-search-for-woocommerce/fs/lib/includes/managers/class-fs-key-value-storage.php on line 313

Deprecated: Return type of FS_Key_Value_Storage::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ajax-search-for-woocommerce/fs/lib/includes/managers/class-fs-key-value-storage.php on line 328

Deprecated: Return type of FS_Key_Value_Storage::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ajax-search-for-woocommerce/fs/lib/includes/managers/class-fs-key-value-storage.php on line 339

Deprecated: Return type of FS_Key_Value_Storage::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ajax-search-for-woocommerce/fs/lib/includes/managers/class-fs-key-value-storage.php on line 350

Deprecated: Return type of FS_Key_Value_Storage::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ajax-search-for-woocommerce/fs/lib/includes/managers/class-fs-key-value-storage.php on line 362

Deprecated: Return type of FS_Key_Value_Storage::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ajax-search-for-woocommerce/fs/lib/includes/managers/class-fs-key-value-storage.php on line 375

Deprecated: Return type of FS_Key_Value_Storage::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ajax-search-for-woocommerce/fs/lib/includes/managers/class-fs-key-value-storage.php on line 389

Deprecated: Creation of dynamic property Cookie_Notice::$options is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/cookie-notice/cookie-notice.php on line 143

Deprecated: Creation of dynamic property Cookie_Notice::$bot_detect is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/cookie-notice/cookie-notice.php on line 118

Deprecated: Creation of dynamic property Cookie_Notice_Frontend::$app_url is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/cookie-notice/includes/frontend.php on line 21

Deprecated: Creation of dynamic property Cookie_Notice::$frontend is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/cookie-notice/cookie-notice.php on line 119

Deprecated: Creation of dynamic property Cookie_Notice::$settings is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/cookie-notice/cookie-notice.php on line 120

Deprecated: Creation of dynamic property Cookie_Notice::$welcome is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/cookie-notice/cookie-notice.php on line 121

Deprecated: Creation of dynamic property Cookie_Notice::$welcome_api is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/cookie-notice/cookie-notice.php on line 122

Deprecated: Creation of dynamic property Cookie_Notice::$welcome_frontend is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/cookie-notice/cookie-notice.php on line 123

Deprecated: version_compare(): Passing null to parameter #2 ($version2) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/load.php on line 31

Deprecated: version_compare(): Passing null to parameter #2 ($version2) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/load.php on line 36

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/updraftplus/class-updraftplus.php on line 955

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/updraftplus/class-updraftplus.php on line 955

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/updraftplus/class-updraftplus.php on line 1528

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/updraftplus/class-updraftplus.php on line 2267

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/updraftplus/class-updraftplus.php on line 3112

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/updraftplus/class-updraftplus.php on line 3118

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/updraftplus/class-updraftplus.php on line 3236

Deprecated: Creation of dynamic property BeRocket_AAPF::$feature_list is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-ajax-filters/main.php on line 185

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-product-addon/inc/arrays.php on line 142

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-product-addon/inc/arrays.php on line 142

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-product-addon/inc/arrays.php on line 149

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-product-addon/inc/arrays.php on line 151

Deprecated: Optional parameter $deps declared before required parameter $version is implicitly treated as a required parameter in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-product-addon/classes/scripts.class.php on line 63

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1659

Deprecated: Return type of WC_DateTime::setTimezone($timezone) should either be compatible with DateTime::setTimezone(DateTimeZone $timezone): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/class-wc-datetime.php on line 57

Deprecated: Return type of WC_DateTime::getOffset() should either be compatible with DateTime::getOffset(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/class-wc-datetime.php on line 47

Deprecated: Return type of WC_DateTime::getTimestamp() should either be compatible with DateTime::getTimestamp(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/class-wc-datetime.php on line 68

Deprecated: Return type of WC_Meta_Data::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/class-wc-meta-data.php on line 50

Deprecated: Creation of dynamic property WooCommerce::$api is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/class-woocommerce.php on line 529

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/src/Internal/DownloadPermissionsAdjuster.php on line 157

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/src/Internal/DownloadPermissionsAdjuster.php on line 157

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/src/Internal/DownloadPermissionsAdjuster.php on line 157

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 528

Deprecated: Return type of WPForms\Logger\Records::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wpforms-lite/src/Logger/Records.php on line 96

Deprecated: Return type of WPForms\Logger\Records::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wpforms-lite/src/Logger/Records.php on line 40

Deprecated: Return type of WPForms\Logger\Records::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wpforms-lite/src/Logger/Records.php on line 50

Deprecated: Return type of WPForms\Logger\Records::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wpforms-lite/src/Logger/Records.php on line 62

Deprecated: Return type of WPForms\Logger\Records::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wpforms-lite/src/Logger/Records.php on line 74

Deprecated: Return type of WPForms\Logger\Records::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wpforms-lite/src/Logger/Records.php on line 84

Deprecated: Creation of dynamic property Automattic\Jetpack\Connection\Manager::$error_handler is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-manager.php on line 93

Deprecated: Creation of dynamic property Essential_Addons_Elementor\Classes\Plugin_Usage_Tracker::$disabled_wp_cron is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/essential-addons-for-elementor-lite/includes/Classes/Plugin_Usage_Tracker.php on line 68

Deprecated: Creation of dynamic property Essential_Addons_Elementor\Classes\Plugin_Usage_Tracker::$enable_self_cron is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/essential-addons-for-elementor-lite/includes/Classes/Plugin_Usage_Tracker.php on line 69

Deprecated: Creation of dynamic property Essential_Addons_Elementor\Classes\Plugin_Usage_Tracker::$require_optin is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/essential-addons-for-elementor-lite/includes/Classes/Plugin_Usage_Tracker.php on line 73

Deprecated: Creation of dynamic property Essential_Addons_Elementor\Classes\Plugin_Usage_Tracker::$include_goodbye_form is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/essential-addons-for-elementor-lite/includes/Classes/Plugin_Usage_Tracker.php on line 74

Deprecated: Creation of dynamic property Essential_Addons_Elementor\Classes\Plugin_Usage_Tracker::$marketing is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/essential-addons-for-elementor-lite/includes/Classes/Plugin_Usage_Tracker.php on line 75

Deprecated: Creation of dynamic property Essential_Addons_Elementor\Classes\Plugin_Usage_Tracker::$options is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/essential-addons-for-elementor-lite/includes/Classes/Plugin_Usage_Tracker.php on line 76

Deprecated: Creation of dynamic property Essential_Addons_Elementor\Classes\Plugin_Usage_Tracker::$item_id is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/essential-addons-for-elementor-lite/includes/Classes/Plugin_Usage_Tracker.php on line 77

Deprecated: Creation of dynamic property Essential_Addons_Elementor\Classes\Plugin_Usage_Tracker::$notice_options is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/essential-addons-for-elementor-lite/includes/Classes/Plugin_Usage_Tracker.php on line 638

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/extensions/blocks/podcast-player/podcast-player.php on line 160

Deprecated: Creation of dynamic property WC_Gateway_PPEC_Plugin::$gateway_loader is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-plugin.php on line 371

Deprecated: Creation of dynamic property WC_Gateway_PPEC_Plugin::$admin is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-plugin.php on line 372

Deprecated: Creation of dynamic property WC_Gateway_PPEC_Plugin::$checkout is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-plugin.php on line 373

Deprecated: Creation of dynamic property WC_Gateway_PPEC_Plugin::$cart is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-plugin.php on line 374

Deprecated: Creation of dynamic property WC_Gateway_PPEC_Plugin::$ips is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-plugin.php on line 375

Deprecated: Creation of dynamic property WC_Gateway_PPEC_Plugin::$client is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-plugin.php on line 376

Deprecated: class_exists(): Passing null to parameter #1 ($class) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 2057

Deprecated: Return type of SkyVerge\WooCommerce\PluginFramework\v5_4_0\SV_WC_DateTime::getTimestamp() should either be compatible with DateTime::getTimestamp(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-square/vendor/skyverge/wc-plugin-framework/woocommerce/compatibility/class-sv-wc-datetime.php on line 61

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/API/Reports/Orders/Stats/DataStore.php on line 378

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/API/Reports/Orders/Stats/DataStore.php on line 690

Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wp-smushit/core/modules/helpers/class-parser.php on line 229

Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wp-smushit/core/modules/helpers/class-parser.php on line 234

Deprecated: Creation of dynamic property Smush\Core\Modules::$webp is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wp-smushit/core/class-modules.php on line 95

Deprecated: Creation of dynamic property WPForms\WPForms::$form is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wpforms-lite/src/WPForms.php on line 272

Deprecated: Creation of dynamic property WPForms\WPForms::$frontend is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wpforms-lite/src/WPForms.php on line 273

Deprecated: Creation of dynamic property WPForms\WPForms::$process is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wpforms-lite/src/WPForms.php on line 274

Deprecated: Creation of dynamic property TInvWLRename::$rename is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ti-woocommerce-wishlist/tinv-wishlists-function.php on line 145

Deprecated: Creation of dynamic property TInvWLRename::$rename_single is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ti-woocommerce-wishlist/tinv-wishlists-function.php on line 146

Deprecated: Creation of dynamic property TInvWLRename::$rename_plural is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ti-woocommerce-wishlist/tinv-wishlists-function.php on line 147

Deprecated: Creation of dynamic property TInvWL_Public_TInvWL::$addto is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ti-woocommerce-wishlist/public/tinvwl.class.php on line 102

Deprecated: Creation of dynamic property TInvWL_Public_TInvWL::$view is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ti-woocommerce-wishlist/public/tinvwl.class.php on line 103

Deprecated: Creation of dynamic property TInvWL_Public_TInvWL::$cart is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ti-woocommerce-wishlist/public/tinvwl.class.php on line 104

Deprecated: Creation of dynamic property TInvWL_Public_TInvWL::$topwishlist is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ti-woocommerce-wishlist/public/tinvwl.class.php on line 105

Deprecated: Creation of dynamic property TInvWL::$rest_api is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ti-woocommerce-wishlist/includes/tinvwl.class.php on line 97

Deprecated: Creation of dynamic property Automattic\Jetpack\Sync\Queue::$random_int is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-queue.php on line 40

Deprecated: Creation of dynamic property Automattic\Jetpack\Sync\Queue::$random_int is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/class-queue.php on line 40

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/calypsoify/class-jetpack-calypsoify.php on line 130

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/calypsoify/class-jetpack-calypsoify.php on line 131

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/calypsoify/class-jetpack-calypsoify.php on line 135

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/calypsoify/class-jetpack-calypsoify.php on line 136

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/calypsoify/class-jetpack-calypsoify.php on line 137

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/simple-payments/simple-payments.php on line 219

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/simple-payments/simple-payments.php on line 220

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/simple-payments/simple-payments.php on line 227

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/simple-payments/simple-payments.php on line 229

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/simple-payments/simple-payments.php on line 231

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/simple-payments/simple-payments.php on line 248

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/simple-payments/simple-payments.php on line 249

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/simple-payments/simple-payments.php on line 267

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/simple-payments/simple-payments.php on line 268

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/simple-payments/simple-payments.php on line 270

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/simple-payments/simple-payments.php on line 271

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/simple-payments/simple-payments.php on line 273

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/jetpack/modules/simple-payments/simple-payments.php on line 275

Deprecated: Automatic conversion of false to array is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-ajax-filters/berocket/includes/updater.php on line 51

Deprecated: Creation of dynamic property Cookie_Notice_Settings::$revoke_opts is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/cookie-notice/includes/settings.php on line 58

Deprecated: Creation of dynamic property NewfoldLabs\WP\Module\ComingSoon::$container is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wp-plugin-hostgator/vendor/newfold-labs/wp-module-coming-soon/includes/coming-soon.php on line 17

Deprecated: Creation of dynamic property NewfoldLabs\WP\Module\ComingSoon::$args is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wp-plugin-hostgator/vendor/newfold-labs/wp-module-coming-soon/includes/coming-soon.php on line 40

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/elementor-pro/modules/loop-builder/module.php on line 204

Deprecated: class_exists(): Passing null to parameter #1 ($class) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 2057

Deprecated: Creation of dynamic property WC_Connect_Tracks::$plugin_file is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-services/classes/class-wc-connect-tracks.php on line 20

Deprecated: Creation of dynamic property WC_Connect_Account_Settings::$payment_methods_store is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-services/classes/class-wc-connect-account-settings.php on line 19

Deprecated: Creation of dynamic property WC_Connect_TaxJar_Integration::$cache_time is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-services/classes/class-wc-connect-taxjar-integration.php on line 50

Deprecated: Creation of dynamic property WC_Connect_Loader::$tracks is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-services/woocommerce-services.php on line 349

Deprecated: Creation of dynamic property WC_Connect_Loader::$label_reports is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-services/woocommerce-services.php on line 505

Deprecated: Creation of dynamic property WC_Countries::$countries is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/class-wc-countries.php on line 51

Deprecated: Creation of dynamic property NM_Text_wooproduct::$icon is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-product-addon/classes/inputs/input.text.php on line 26

Deprecated: Creation of dynamic property NM_Textarea_wooproduct::$icon is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-product-addon/classes/inputs/input.textarea.php on line 26

Deprecated: Creation of dynamic property NM_Select_wooproduct::$icon is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-product-addon/classes/inputs/input.select.php on line 26

Deprecated: Creation of dynamic property NM_Radio_wooproduct::$icon is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-product-addon/classes/inputs/input.radio.php on line 26

Deprecated: Creation of dynamic property NM_Checkbox_wooproduct::$icon is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-product-addon/classes/inputs/input.checkbox.php on line 26

Deprecated: Creation of dynamic property NM_Email_wooproduct::$icon is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-product-addon/classes/inputs/input.email.php on line 26

Deprecated: Creation of dynamic property NM_Date_wooproduct::$icon is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-product-addon/classes/inputs/input.date.php on line 26

Deprecated: Creation of dynamic property NM_Number_wooproduct::$icon is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-product-addon/classes/inputs/input.number.php on line 26

Deprecated: Creation of dynamic property NM_Hidden_wooproduct::$icon is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-product-addon/classes/inputs/input.hidden.php on line 26

Deprecated: Creation of dynamic property AWS_Integrations::$child_theme is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/advanced-woo-search/includes/class-aws-integrations.php on line 53

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php on line 46

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php on line 50

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php on line 52

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php on line 56

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php on line 73

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php on line 115

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php on line 119

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php on line 120

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php on line 121

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php on line 122

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php on line 123

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php on line 40

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php on line 44

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php on line 77

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php on line 81

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php on line 82

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php on line 83

Deprecated: Creation of dynamic property Cookie_Notice_Frontend::$preview_mode is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/cookie-notice/includes/frontend.php on line 33

Deprecated: Creation of dynamic property ThemeisleSDK\Product::$author_url is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Product.php on line 188

Deprecated: Creation of dynamic property OMAPI::$blocks is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/optinmonster/optin-monster-wp-api.php on line 415

Deprecated: Return type of ActionScheduler_DateTime::setTimezone($timezone) should either be compatible with DateTime::setTimezone(DateTimeZone $timezone): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_DateTime.php on line 60

Deprecated: Return type of ActionScheduler_DateTime::getOffset() should either be compatible with DateTime::getOffset(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_DateTime.php on line 48

Deprecated: Return type of ActionScheduler_DateTime::getTimestamp() should either be compatible with DateTime::getTimestamp(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_DateTime.php on line 27

Deprecated: Creation of dynamic property WooCommerce\Square\Gateway::$enable_digital_wallets is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-square/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php on line 359

Deprecated: Creation of dynamic property WC_Cart::$coupon_discount_totals is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/legacy/class-wc-legacy-cart.php on line 266

Deprecated: Creation of dynamic property WC_Cart::$coupon_discount_tax_totals is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/legacy/class-wc-legacy-cart.php on line 266

Warning: Cannot modify header information - headers already sent by (output started at /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ajax-search-for-woocommerce/fs/lib/includes/managers/class-fs-key-value-storage.php:44) in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/wp-force-ssl/wp-force-ssl.php on line 862

Deprecated: Creation of dynamic property WC_Gateway_Paypal::$testmode is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 60

Deprecated: Creation of dynamic property WC_Gateway_Paypal::$debug is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 61

Deprecated: Creation of dynamic property WC_Gateway_Paypal::$email is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 62

Deprecated: Creation of dynamic property WC_Gateway_Paypal::$receiver_email is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 63

Deprecated: Creation of dynamic property WC_Gateway_Paypal::$identity_token is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 64

Deprecated: Creation of dynamic property WooCommerce\PayPalCommerce\WcGateway\Gateway\PayPalGateway::$authorized_payments is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php on line 213

Deprecated: Creation of dynamic property WC_Gateway_BACS::$instructions is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php on line 49

Deprecated: Creation of dynamic property WC_Gateway_BACS::$account_details is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php on line 52

Deprecated: Creation of dynamic property WC_Gateway_Cheque::$instructions is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php on line 41

Deprecated: Creation of dynamic property WC_Gateway_COD::$instructions is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php on line 40

Deprecated: Creation of dynamic property WC_Gateway_COD::$enable_for_methods is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php on line 41

Deprecated: Creation of dynamic property WC_Gateway_COD::$enable_for_virtual is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php on line 42

Deprecated: Creation of dynamic property WC_Gateway_Paypal::$testmode is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 60

Deprecated: Creation of dynamic property WC_Gateway_Paypal::$debug is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 61

Deprecated: Creation of dynamic property WC_Gateway_Paypal::$email is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 62

Deprecated: Creation of dynamic property WC_Gateway_Paypal::$receiver_email is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 63

Deprecated: Creation of dynamic property WC_Gateway_Paypal::$identity_token is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 64

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$button_size is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 32

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$environment is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 33

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$mark_enabled is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 34

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$api_username is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 37

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$api_password is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 38

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$api_signature is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 39

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$api_certificate is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 40

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$api_subject is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 41

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$debug is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 50

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$invoice_prefix is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 51

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$instant_payments is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 52

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$require_billing is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 53

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$paymentaction is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 54

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$subtotal_mismatch_behavior is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 55

Deprecated: Creation of dynamic property WC_Gateway_PPEC_With_SPB::$use_ppc is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 56

Deprecated: Creation of dynamic property CMP_Coming_Soon_and_Maintenance_Render_HTML::$jquery is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/cmp-coming-soon-maintenance/inc/class-cmp-render_html.php on line 11

Warning: Cannot modify header information - headers already sent by (output started at /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/ajax-search-for-woocommerce/fs/lib/includes/managers/class-fs-key-value-storage.php:44) in /home2/ihmoleul/yaohanoptical.com/wp-includes/feed-rss2.php on line 8
Yaohan Optical https://yaohanoptical.com Cartier Authorized Dealer Thu, 14 Feb 2019 17:49:35 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 https://yaohanoptical.com/wp-content/uploads/2021/02/cropped-YO-32x32.png Yaohan Optical https://yaohanoptical.com 32 32 Plugins https://yaohanoptical.com/index.php/2019/02/14/plugins/?utm_source=rss&utm_medium=rss&utm_campaign=plugins Thu, 14 Feb 2019 17:49:35 +0000 https://gpsites.co/merch/?p=2932
Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79
WP Show Posts

The awesome Show Posts plugin from Tom Usborne. Used for the Related Posts section on our single posts.

Happy Forms

User friendly effective way of adding Forms to your Site. Used on the Front page for a simple sign up.

GP Social Sharing

Simple SVG Icon sharing. Its currently added to the Single Product pages using the plugins shortcode in a Hook Element.

Advanced Woo Search

Ajax searching for Woocommerce products. Added as a widget to the sidebar.

]]>
WooCommerce https://yaohanoptical.com/index.php/2019/02/12/woocommerce/?utm_source=rss&utm_medium=rss&utm_campaign=woocommerce Tue, 12 Feb 2019 13:49:39 +0000 https://gpsites.co/merch/?p=2810
Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79
WooCommerce just got even simpler with GeneratePress Premium 1.8 . It wouldn’t be a Flint Skin site of course if there wasn’t a little CSS and some Custom functions. But the vast majority of what you see is styled through the Customizer.

Woo Shop Page

New GP Premium 1.8 Features

  • Display mini cart sub-menu
    No more need for a plugin with this beautiful min cart shown when hovering the nav cart icon
  • Menu Item Content
    Choice between Amount and Number of Items. I have chosen the latter
  • Display cart panel on add to cart
    Replacing the standard WooCommerce add to cart notification with a great slide out panel.

Shop Page Product – add to cart ( desktop )

Using a little CSS to create a show / hide on hover effect. This uses some CSS which you can find in the Customizer > Additional CSS. It looks like this:

.woocommerce ul.products li.product {
    overflow: hidden;
}

.woocommerce ul.products li.product:hover .button {
    -webkit-transform: translatey(0) !important;
    transform: translatey(0) !important;
}

.woocommerce ul.products li.product .button {
    font-size: 12px;
    line-height: 15px;
    padding: 8px 12px;
    min-height: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

@media (min-width: 1024px) {
    .woocommerce ul.products li.product .button {
        position: absolute;
        top: 0;
        -webkit-transform: translatey(-150%);
        transform: translatey(-150%);
        -webkit-transition: 0.35s;
        transition: 0.35s;
        margin-top: 10px;
        margin-left: 10px !important;
    }
}

The radius corners have been added using the Button CSS which is covered in the Styling Guide.

Sale Badge

To compliment the positioning and rounded corners of the add to cart I used this CSS:

.woocommerce span.onsale {
    position: absolute;
    margin: 10px !important;
    border-radius: 4px !important;
}

WooCommerce Sidebars – Common

The Site uses the standard right hand sidebar, packed full of WooCommerce widgets. There is of course some CSS to add the borders, adjust padding & margins. It looks like this:

@media (min-width: 768px) {
    #right-sidebar {
        border-left: 1px solid #d6d7d8;
    }

    #right-sidebar .widget {
        margin-bottom: 0;
    }

    #right-sidebar aside:first-child {
        padding-top: 0;
    }

    #right-sidebar aside:not(:first-child) {
        border-top: 1px solid #d6d7d8;
    }
}

Please see the separate notes on the Single Product Sidebar

WooCommerce Single Product

The Single Product page has had some seriousl love applied with GP Premium 1.8. Aside of the Hook Elements at play and the little rounded corners on buttons all of the styling is controlled from within the Customizer. Freaking awesome. It is by virtue of these new features that means there is very little Woo CSS being used at all. So first off check out all the new features in Customizer > Layout > WooCommerce.

New GP features

  • Product Image area width
    Set to 65% as this site should be all about the image.
  • Display add to cart panel on scroll
    Sliding into view when the on page add to cart is scrolled past keeping this important function always in view
  • Display quantity buttons
    The new new + / – qty fields really do add a touch of finesse

Then take a look at the few customizations made using Hooks and the little extra CSS

Jump Link – Full Description

Using a Hook Element: Single Product Jump to Description we have added a simple jump link to take us from the summary to the Full Description. Here is the HTML for that. It uses the custom loud-link class on its container to provide the hover and arrow. It also uses the GP smooth-scroll class, with this option active in the Customizer > General

<p class="loud-link">
	<a class="smooth-scroll" href="#tab-title-description">Full description</a>
</p>

Variations background styling

Adding a little background color and some padding to make product variations stand out required this CSS:

.woocommerce.single-product div.product form.cart .variations {
    background-color: #f2f3f4;
    padding: 30px 40px;
}

Social Share

Using Jon Mathers GP Social Sharing plugin to display social share links on Woo was easy. Within the GP Social Share settings we have disabled the built in Hooks. Then creating a Hook Element: Woo Social Sharing I simply added the shortcode and selected the dedicated woocommerce_share hook from the extensive list of hooks.

Single Product Sidebar

Big images and sharp summary is an important part of the design. This meant I had to sacrifice some space without losing that important sidebar. So instead I moved the Sidebar below the summary. It took a few steps but all achievable within GP and the Customizer. Here’s how its done:

  • Remove sidebar from default position
    Customizer > Layout > WooCommerce –> Single Product > Sidebar Layout: Content / No Sidebar
  • Add the sidebar in a new position
    Hook Element: Woo Single Product Sidebar a simple function to hook the sidebar back in where I wanted it.
  • Then some custom CSS to make sure it positions correctly on Desktop

Single Product Sidebar CSS

@media (min-width: 768px) {
    .single-product #right-sidebar {
        float: right;
    }

    .single-product div.product .woocommerce-tabs,
    .single-product div.product .related.products,
    .single-product div.product .upsells.products {
        width: 66%;
        display: inline-block;
    }
}

Woocommerce Product Images

In the latest version of Woo they changed the way you size the images. In Customizer > WooCommerce > Product Images you now have only two choices.

  • Main Image Width
    This is the image used on the Single Product. It has been set to 800px to match the single product image area width.
  • Thumbnail Width
    Set to 400px which is just right for the 2 column layout. You may be inclined to reduce this if using more columns. But as there is no mobile option i leave this at 400px so it fits nicely on those plus size mobile devices.

The great part about the new Woo Product Images is that they auto generate the sizes. No need to renegerate thumbnails and they don’t interfere with your normal WP thumbnail sizes.

Image advice

Making your images look great in Woo takes a lot of upfront work. If you’re expecting Woo to do the magic for you then you’re gonna get in trouble. Start off with this handy checklist:

  • Aspect Ratio
    Consistent aspect ratio will eradicate mis-alignment of images in your grid or unsightly movement in your product gallery. Preferably i would stick with square images. If that means editing them in your favourite photo editor and adding some white space than do so.
  • Image sizes
    Woo allows you to set the Thumbnail and the Main Image. Ideally they should be equally divisible into your original image e.g
    Original: 1600px , Main: 800px , Thumbnail: 400px.
    What you don’t want is odd sized images where they become blurry on resizing due to stray fractions of a pixel.
  • Setting your image sizes
    Load some oversized images in your dummy products. Set the Customizer > WooCommerce > Product Image sizes so they fill the container. Now use the browser inspector to see the size they are being displayed in your Shop and Single Product. Make sure you done this after you have finished your layout design.
  • Mobile First
    Consider that your probably gonna use a single column for mobile. Which could mean it needs a wider image than those in the desktop columns. Use this for your Thumbnail size. Its no big issue that their larger then you need on desktop.
  • Zoom
    The Product Gallery Zoom and Lightbox will use the largest image it can get it hands on. So make sure your original image is larger then the Main Image width you have set.
]]>
The Single Post https://yaohanoptical.com/index.php/2019/02/10/the-single-post/?utm_source=rss&utm_medium=rss&utm_campaign=the-single-post Sun, 10 Feb 2019 17:46:55 +0000 https://gpsites.co/merch/?p=2394
Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79
The single post has been styled to provide a bold introduction, large featured image and clean easy to read content. Starting with a custom hero header and finishing with a related posts section. It should provide all you need to create categorised post content to support your shop. All of the custom features are 100% dynamic you simply need to:

  • Write your post
  • Add a manual excerpt
  • Select your featured image
  • Give it a category

A note on Categories: The custom post navigation and related posts section displays content based on the current posts category. It uses the first Category assigned to the post. So if you choose to assign a post to multiple categories it will only query the first category.

The hero header

The single post header is quite a complicated set-up. Using four separate GeneratePress Elements. Including 2 hooks, a featured image header and a layout element. There is nothing the user needs to do for this to be displayed or dynamically updated.

The basics

Before diving into the detail if you’re not familiar with the Elements module and its Hook, Header and Layout Element then start reading here:

The four elements

#1 Hook: Single Post Custom Entry Header

This hook element contains custom PHP. It outputs the Category, Post Title and Post Excerpt. Changing this set-up requires knowledge of PHP. It is therefore advisable that it is left alone.

If you do not want the custom post header then you can remove the Single Post Custom Entry Header Hook element. You also won’t be needing the following hook element and layout element.

#2 Hook: Fade Out Header Element on Scroll up

This hook contains some simple vanilla javascript. This provides the subtle fade out on the custom header element upon scrolling. There is no CSS required. Here is the JS if you’re interested.

<script>
window.onscroll = function () {
    var target = document.getElementById("custom-post-entry-header");

    var height = window.innerHeight;

    var scrollTop = (window.pageYOffset !== undefined) ? window.pageYOffset : (document.documentElement || document.body.parentNode || document.body).scrollTop;

    // Change this if you want it to fade faster
    height = height / 3;
    var fader = (height - scrollTop) / height;
    if (fader > 0) {
        target.style.opacity = fader;
    }

};
</script>

#3 Layout: Remove single post title

As we have the Single Post Custom Entry Header and Post Navigation element we don’t need the Post title in our content. So this element simply removes that.

#4 Header: Single Post Header Featured Image

A standard Header Element that uses the posts featured image for the background. It has been set-up to a preset size using Padding and uses the Parallax scrolling effect.

A note on using Elements

Duplicating Elements

Elements are like a clever custom post type. Sometimes you may want to make multiple variations of them. But instead of creating them from scratch you can use the Duplicate Post plugin. Just make sure to check the Elements option in the plugins settings and use the New Draft option it provides on any element.

The Content

The single post uses a narrower content width for easier reading. In GP Premiums 1.8 updated Layout Element this is real simple to do. Simply go to Appearance > Elements > Single Post Layout –> Content Tab > Content Width.

To note you can combine this setting with the above Remove Single Post Layout element. I have kept the two separate for clarity and in case you want to remove one but not the other.

The custom header element does require a bit of CSS to achieve the same effect. To change this width requires editing some CSS. Please note that this CSS has been specifically designed for the custom header. Making it wider may conflict with the post navigation.

#post-nav .post-nav-entry-header {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto
}

Narrow Content Pre GP Premium 1.8

If you’re not using GP Premium 1.8 then the post width will not be narrowed. You can either update to 1.8 or find the above CSS in Customizer > Additional CSS and change it to:

#post-nav .post-nav-entry-header, .single-post #content {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto
}

Single Post – Centred date and by-line

Most of the Meta Data on the Single post has been moved to the custom post header. The remaining meta, the date and by-line is centred.

.single-post .entry-header {
    text-align: center;
}

Single Post – increased whitespace

For clearer definition of the posts content structure I have increased the space between paragraphs and H2 Headings. This clearly identifies to the reader they are starting a new section. This CSS creates a larger white space above the H2 block the proceeds any other type of block.

.single-post .entry-content *+h2 {
    margin-top: 64px;
}

Adding content

This site was built using the WP 5.0 Block (Gutenberg) editor. For post writing it is an excellent tool. You can of course install and use the Classic editor for your writing. Likewise you could add your favorite page builder although i personally would never use one for writing posts.

Related Posts

Related Posts are displayed below each of the posts. This is provided by the excellent WP Show Posts. Again it is 100% dynamic and displays posts within the same category of the current post.

How I made the Related Posts

#1 A WP Show Posts List

In the Dashboard > WP Show Posts you will see a Post List named Related. The title of this List is very important as it is used in the next step. If the List name is changed you will need to update the code that follows. The set-up of the List is quite simple. We select the content and the number of columns to be displayed. We do NOT select a Taxonomy. This will be done by our code.

#2 Hook: Related Posts

We use the hook found in Appearance > Elements > Related Posts. We have selected the before_footer hook and checked Execute PHP. Our Display Rules are set to All Posts. For the content we’re using some PHP instead of the usual WP Show Posts Shortcode. This is so it dynamically displays our content.

<div class="wpsp-related-posts  grid-container">
	<h2>Related Posts</h2>
<?php
if ( is_single() ) {
    $cats =  get_the_category();
    $cat = $cats[0];
} else {
    $cat = get_category( get_query_var( 'cat' ) );
}

$cat_slug = $cat->slug;
$list = get_page_by_title( 'related', 'OBJECT', 'wp_show_posts' );
wpsp_display( $list->ID, 'tax_term="' . $cat_slug . '"' );
?>
</div>

You will see in this line the related list name:

$list = get_page_by_title( 'related', 'OBJECT', 'wp_show_posts' );

As noted in #1 the name of the List must match this label.

#3 Styling the related posts block

In our PHP / HTML you will see two classes added to the parent DIV. They are wpsp-related-posts and grid-container.
grid-container is a GeneratePress class and it simply sets the container width to that within the Customizer. Its dynamic which is nice.
wpsp-related-posts is a Custom class and sets the padding, margins and background colors. Look for this in the Customizer > Additional CSS:

.wpsp-related-posts {
    background-color: #f2f3f4;
    padding: 64px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.wpsp-related-posts h2 {
    margin-bottom: 64px;
}

Changing the background colors or styles are done by editing that CSS

]]>
The Home Page Content https://yaohanoptical.com/index.php/2019/02/08/home-page-content/?utm_source=rss&utm_medium=rss&utm_campaign=home-page-content Fri, 08 Feb 2019 18:54:05 +0000 https://gpsites.co/merch/?p=2511
Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79
Aside of the Header Element the entire home page content is built with the Block Editor ( a.k.a. Gutenberg). Combined with GeneratePress editor styles we now have a much better front end representation whilst we are editing. Allowing each element to be given specific styles and Additional CSS classes means we don’t have to stray into HTML very often. In fact on this Site we never do.

Page Structure

Let’s begin with looking at the hierarchy.

  • Header Element – This is covered in this article
  • H2 Headings
  • Shop Categories
  • Latest Products
  • Call to Action Row – forty / sixty split
  • Call to Action Row – sixty / forty split
  • Sale Products
  • Sign Up
  • GP Footer – The default Theme widgets

H2 Headings

For our landing page I wanted some big bold H2 headings. Larger than what we have specified in our Customizer. But also make them super responsive. To make this happen I created some custom CSS using an Additional CSS Class of:

large-heading

Simply select your Heading Block, make sure it’s a H2, open the Advanced Dropdown in the Settings Sidebar and add the class to Additional CSS Class field. Please note: You won’t see the style change in the editor. Like all CSS you will find it in the Customizer > Additional CSS. It looks like this

h2.large-heading {
    font-size: calc(28px + (86 - 28)*(100vw - 400px)/(1600 - 400));
    line-height: 1.1em;
}

So this looks complicated but is what provides the responsive controls. If you want more information on what this all means then check out Responsive And Fluid Typography With vh And vw Units

Shop Categories

Built using a Columns Block set to two columns. Each column contains an Image, Heading, Text and link block. Nothing fancy and real simple to edit. Adding additional columns can be done from the Column Settings. Creating additional rows is simply a case of duplicating the existing one.

Making the image link to the category

Images Settings have a Link to Option. Just set the Link to: Custom URL and add your category link

Custom Link Styling

Hopefully you noticed the custom style link. This is achieved using custom CSS. To add this style to any of your in content links just give the block an Additional CSS Class of: loud-link

Latest Products

After our Title Block we simply add a Woocommerce: Recent Products Shortcode.

Call to Action (CTA) Rows

Once again the Columns Block comes into play. Out of the box there is no way to adjust the column widths. So within the editor you’re stuck with equally sized columns. To get around this to display unequal sized columns we added some simple CSS Classes.

Additional CSS ClassResulting style
forty-sixty-columns a 40% / 60% two column row
sixty-forty-columns a 60% / 40% two column row
mobile-column-reverse Reverse the order of the two columns on mobile.
Add this class along with one of the above.

Please note: these classes do not apply the styles within the editor

Sign Up

The Sign Up form is provided by the Happy Forms plugin. The form is added to the second column using a Short Code widget. The short code for your form is found in the Dashboard > Happy Forms. A common design is to use these types of CTA to break up a page. To do this we have given it our own special styling.

First off we need to make this row extend to the edge of the container ( outside of the content padding). This is done simply by selecting the Align Wide option from the Block toolbar. The rest requires some familiar CSS from our CTA Rows and a little extra. here are the classes it uses:

  • sixty-forty-columns
    a 60% / 40% two column row
  • column-banner
    this makes necessary padding adjustments
  • center-vertical
    vertically centring any content placed within one of the CTA Columns
  • bg-grey
    Applies the grey background color

Editing the Form

The form can be edited from the Dashboard > Happy Forms. If you create a new form you will need to update the short-code used on the front page.

Changing the rows background color

Go to the Customizer > Additional CSS ( or to your Child Theme Style sheet if you have moved it). And edit this CSS:

.bg-grey {
    background-color: #f2f3f4;
}

You can of course simply create your own classes with more relevant names for the colors you choose.

Can i use a different form?

Of course. If you want to use another form plugin then simply go about setting that up and replacing the short code with your new one.

]]>
Building the Home Page Header https://yaohanoptical.com/index.php/2019/02/06/building-the-home-page-header/?utm_source=rss&utm_medium=rss&utm_campaign=building-the-home-page-header https://yaohanoptical.com/index.php/2019/02/06/building-the-home-page-header/#comments Wed, 06 Feb 2019 03:28:24 +0000 https://gpsites.co/merch/?p=2234
Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79
The Home Page uses a very specific Header Element. It takes advantage of almost all of the features the header element provides. Including Featured Image background, merged with site header and custom Navigation location and colors. Get to know more about the Header Element here:

The Merged Site Header Element

To edit the header go to: Appearance > Elements –> Home Page Hero – Merged. To note this header has been designed specifically around the image. We now cover the different settings and their purpose. This should provide you enough understanding on how to manipulate the header for your own content.

Page Hero Tab Settings

  • Hero Content > Basic HTML markup consisting of span tag subheading, H1 tag for main heading and an anchor tag using GP Button class.
  • Element Classes > None
  • Container > Set to contained
  • Padding Desktop > Notable the 30% RHS padding is creating a safe zone to stop the page hero content from overlapping the RHS of the image.
  • Padding Mobile > Separate padding to allow the text to span the header element.
  • Background Image > Uses the Featured Image and set to centred. The featured images is disabled in the page content.
  • Colors > no background color or overlay. Text colors have been adjusted for the heading. All colors left as default respect the customizer settings.

Site Header Tab Settings

  • Merge with Content > Merged
  • Offset Site Header Height > Set to 169px on desktop and 50px on Mobile. These values are the rough height of the Site Header and Mobile Header. This stops our content from moving under the navigation and site header.
  • Colors > Background is set to a transparent white and Site Title and Tag Line remain as default and respect the colors set in the Customizer.
  • Navigation Location > Default
  • Navigation Colors > Checked and background is set to transparent.

Display Rules

This Header is set to display on the Front Page. This is the standard term for the page has been assigned in Dashboard > Settings > Reading –>Your Home Page Displays.

Frequently asked questions

How to change the background Image?

The Header Element uses the Featured Image background. Simply change the featured image within the post editor on the home page.

How to change the Heading and Sub heading?

Edit the header elements hero content. The font styles and sizes are set within the Customizer > Typograpghy settings

How to adjust the containment of the text?

The current heading and subheading are contained, so it does not overlap the darker part of the image on the right hand side. This is done by adding additional padding to the right hand side of the header element. Remove or change the padding to suit your requirements.

How to change the navigation colors?

In the Site Header tab you are given color controls for the header and the navigation. These override the colors set in the customizer. To note: the colors in the customizer will still apply to the Sticky Navigation.

How to use this header element on other pages?

If you want an exact copy of this header then you can simply add more pages, posts or templates to the Display Rules. But seeing as the home page would deserve some pretty specific headlines, you probably want to make a copy of it and change the content for your needs. Of course you can do this manually or use the Duplicate Post plugin – just make sure to edit the plugin settings and include Elements.

]]>
https://yaohanoptical.com/index.php/2019/02/06/building-the-home-page-header/feed/ 1
Custom Theme Styling (CSS) https://yaohanoptical.com/index.php/2019/02/02/custom-styling-css/?utm_source=rss&utm_medium=rss&utm_campaign=custom-styling-css Sat, 02 Feb 2019 19:47:51 +0000 https://gpsites.co/merch/?p=2583
Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/ihmoleul/yaohanoptical.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php on line 79
All of the custom CSS can be found in the Customizer > Additional CSS. At around 400 lines it can happily remain there. But i generally recommend that it finds a home in a child theme stylesheet. Most of the common Theme CSS is covered here for the inquisitive or for those wanting to make changes. CSS for specific pages or elements are covered in their relevant posts.

It should be noted that Custom CSS is only displayed on the Front End. Adding editor styles ( at this time ) is not achievable with an imported Site.

Typography

The vast majority of the theme styling, particularly Typography, Spacing and Colors are set in the customizer. But there is some custom CSS at play.

Large H2 Heading

The large-heading class can be added to a H2 Title Block to increase its size.

This is the large H2 heading

h2.large-heading {
    font-size: calc(28px + (64 - 28)*(100vw - 400px)/(1600 - 400));
    line-height: 1.1em;
}

Unless you’re a fan of algebra this CSS looks complicated. In a nut shell it sets the font size dynamically based on the current screen size. Our font size range is 28px to 64px. And our screen size range is 400px to 1600px. Try adjusting your browser width to see the effect.
If you want more information on fluid typography then check out Responsive And Fluid Typography With vh And vw Units

Hover Link

The loud-link class will add an icon and underline hover effect. It should only be applied to a Text Block that only contains the link.

Buttons

All Theme button colors and typography are controlled via the customizer. The Happy Forms button has its own styling controls in the plugins settings. The additional rounded corners and hover styling is applied using this CSS:

a.button,
.wp-block-button__link,
.happyforms-submit,
.woocommerce button.button {
    -webkit-box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08);
    box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08);
    -webkit-transition: all .15s ease;
    transition: all .15s ease;
    border-radius: 4px !important;
}

a.button:hover,
a.wp-block-button__link:hover,
.happyforms-submit:hover,
.woocommerce button.button:hover {
    -webkit-box-shadow: 0 7px 14px rgba(50, 50, 93, .1), 0 3px 6px rgba(0, 0, 0, .08);
    box-shadow: 0 7px 14px rgba(50, 50, 93, .1), 0 3px 6px rgba(0, 0, 0, .08);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
}

Header

Underline

For this minimalist design I thought it best that we make a clear distinction between the Site Header and the page content. This is achieved with a simple bottom border on our Site Header. It comes in two varieties. White for pages with a Merged Header Element, and black for the ones without.

.header-wrap .site-header {
    border-bottom: 1px solid #fff;
}
.site-header {
    border-bottom: 1px solid #ccc;
}

Primary Navigation

Hover Effect

A simple underline that scales from zero to menu item width on hover. It inherits the current color of the menu items.

.main-navigation .menu>.menu-item>a:before,
.main-navigation .menu>.current-menu-item:not(.wc-menu-item)>a:before,
.loud-link a:before {
    content: "";
    position: absolute;
    display: block;
    bottom: 1em;
    width: 0%;
    height: 2px;
    background-color: currentColor;
    -webkit-transition: 0.3s width ease;
    transition: 0.3s width ease;
}

.main-navigation .menu>.menu-item>a:hover:before,
.main-navigation .menu>.current-menu-item:not(.wc-menu-item)>a:before,
.loud-link a:hover:before {
    width: calc(100% - 40px);
}

]]>
Hello world! https://yaohanoptical.com/index.php/2019/01/29/hello-world/?utm_source=rss&utm_medium=rss&utm_campaign=hello-world https://yaohanoptical.com/index.php/2019/01/29/hello-world/#comments Tue, 29 Jan 2019 18:34:25 +0000 https://yaohanoptical.com//?p=1 Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

]]>
https://yaohanoptical.com/index.php/2019/01/29/hello-world/feed/ 1