jleung1994
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Storefront] Google Search Console Structured Data errorDoes this affect SEO? Is it necessary to fix it? I don’t think the author is necessary.
Forum: Plugins
In reply to: [WooCommerce] ERROR: Anti-spam field was filled in.ok, thanks
still not working with updated code
only ‘Alt’ and ‘Title’ seems to work,
probably because there’s no conflict with frontend.jsvar jmain_img_zoom = j('a.woocommerce-main-image'); var jmain_img_image = j('a.woocommerce-main-image img'); // some code to generate new src, srcset jmain_img_zoom.error(function() { j( this ).prop( 'href', jdefault_url ); }).prop('href', jnewsrc); jmain_img_image.error(function() { j( this ).prop( 'src', jdefault_url ); }).prop('src', jnewsrc); jmain_img_image.error(function() { j( this ).prop( 'src-orig', jdefault_url ); }).prop('src-orig', jnewsrc); jmain_img_image.error(function() { //j( this ).prop( 'srcset', jdefault_srcset ); //jname = jdefault_name; }).prop('srcset', jnewsrcset); jmain_img_image.error(function() { j( this ).prop( 'alt', 'no image'); }).prop('alt', jnewalt); jmain_img_image.error(function() { j( this ).prop( 'title', 'no image'); }).prop('title', jnewtitle);
If I disable the plugin, this code worked well.
j('a.woocommerce-main-image').error(function() { j( this ).attr( 'href', jdefault_url ); }).attr('href', jnewsrc); j('a.woocommerce-main-image img').error(function() { j( this ).prop( 'src', jdefault_url ); }).prop('src', jnewsrc); j('a.woocommerce-main-image img').error(function() { j( this ).prop( 'src-orig', jdefault_url ); }).prop('src-orig', jnewsrc); j('a.woocommerce-main-image img').error(function() { j( this ).prop( 'alt', 'no image'); }).prop('alt', jnewalt); j('a.woocommerce-main-image img').error(function() { j( this ).prop( 'title', 'no image'); }).prop('title', jnewtitle); j('a.woocommerce-main-image img').error(function() { //j( this ).prop( 'srcset', jdefault_srcset ); //jname = jdefault_name; }).attr('srcset', jnewsrcset);
custom CSS for Ubermenu fixed the issue
#masthead{ position:relative; z-index:40; } #content{ position:relative; z-index:20; }
Forum: Themes and Templates
In reply to: [Storefront] Google Search Console Structured Data errorIt’s on my pages.
I do have these lines in my storefront-child theme functions.php.remove_action( 'wp_head', 'rsd_link' ); remove_action( 'wp_head', 'wlwmanifest_link' ); remove_action( 'wp_head', 'wp_generator' ); remove_action( 'wp_head', 'start_post_rel_link' ); remove_action( 'wp_head', 'index_rel_link' ); remove_action( 'wp_head', 'adjacent_posts_rel_link' ); remove_action( 'wp_head', 'wp_shortlink_wp_head' );
Forum: Plugins
In reply to: [WooCommerce] ERROR: Anti-spam field was filled in.I did the same registration on my computer for him. Everything worked fine.
Any idea why?
Could this be a temporary web hosting issue?
The top menu of the website disappeared for a few minutes in Chrome yesterday, but works fine in Firefox. The menu now works fine again.Forum: Plugins
In reply to: [WooCommerce] ERROR: Anti-spam field was filled in.I didn’t get a reply whether he tried turning off the autofill. Could this be a cache issue? Or Ubuntu computer issue?
Forum: Plugins
In reply to: [Really Simple CAPTCHA] is the plugin compatible with php 5.6?thanks
Forum: Plugins
In reply to: [WooCommerce] ERROR: Anti-spam field was filled in.He used Firefox and Chrome, which is the same as what I used and I have no problem creating an account.
Forum: Themes and Templates
In reply to: [Storefront] Change search function to not only search productsYou’re welcome!
Forum: Plugins
In reply to: [WooCommerce] ERROR: Anti-spam field was filled in.Why does this issue appear once in a while? Because of security?
Forum: Plugins
In reply to: [WooCommerce] ERROR: Anti-spam field was filled in.Hi,
I have no problem registering an account myself.I’ve added required billing first name, last name, company, and phone number to the registration form on my-account page.
Also, my boss, he previously already created an account using his gmail. This time he tried to create another account with his work email (I mean [email protected]).
Forum: Themes and Templates
In reply to: [Storefront] Change search function to not only search products1. remove the product search
2. add widget search
Please see the code below./* Remove Storefront Product Search in Header*/ add_action( 'init', 'jk_remove_storefront_header_search' ); function jk_remove_storefront_header_search() { remove_action( 'storefront_header', 'storefront_product_search', 40 ); } /* Add search all function to replace search product*/ if ( ! function_exists( 'storefront_all_search' ) ) { function storefront_all_search() { if ( is_woocommerce_activated() ) { ?> <div class="site-search"> <?php the_widget( 'WP_Widget_Search' ); ?> </div> <?php } } } add_action('storefront_header', 'storefront_all_search', 40);
Forum: Plugins
In reply to: [WooCommerce] Adding attribute to single-product page with functions.phpthanks