-
AuthorPosts
-
August 1, 2014 at 5:41 pm #298857
Product images pop up in a light box and then scroll through the youtube links in the footer.
When it pops up use the left and right arrows – it then goes though the images on that page and then the you tube videos????
See link below,
-
This topic was modified 11 years, 2 months ago by
mmsdev.
August 2, 2014 at 2:28 am #299042Hey midischool!
Thank you for using the theme.
Please add this on Quick CSS or custom.css:
function remove_woo_rel(){ ?> <script type="text/javascript"> jQuery(window).load(function(){ jQuery('.woocommerce-main-image').removeAttr('rel'); }); </script> <?php } add_action('wp_footer', 'remove_woo_rel');Best regards,
IsmaelAugust 3, 2014 at 11:45 am #299316Hi.
Thanks for the info but that does not work.
August 4, 2014 at 2:44 am #299480Hi!
Please remove browser cache then reload the page a few times. It does work when I test it on my installation.
Regards,
IsmaelAugust 4, 2014 at 1:55 pm #299656This reply has been marked as private.August 4, 2014 at 2:37 pm #299678Hi!
Can you please post a screenshot and show the image you would like to remove?
Cheers!
YigitAugust 4, 2014 at 3:04 pm #299690This reply has been marked as private.August 4, 2014 at 3:39 pm #299700Hey!
Please change the code Ismael posted to following one
function remove_woo_rel(){ ?> <script type="text/javascript"> jQuery(window).load(function(){ jQuery('a.woocommerce-main-image').removeAttr('rel'); }); </script> <?php } add_action('wp_footer', 'remove_woo_rel');Best regards,
YigitAugust 4, 2014 at 3:55 pm #299712This reply has been marked as private.August 4, 2014 at 4:47 pm #299747woocommerece should have the option to disable/enable the lightbox see attachment.
But this section is missing within woocommerece settings when using Enfold theme, if you switch to 2013 theme its comes back.
August 5, 2014 at 2:40 am #299966Hi!
Lightbox is disabled now. I put a code in your child theme functions.php.
Regards,
JosueAugust 5, 2014 at 10:06 pm #300421This reply has been marked as private.August 6, 2014 at 4:24 am #300487Hi!
Try using this code instead:
.single-product-main-image>.images a, .single-product-summary .images a{ pointer-events: none; }The section you mention isn’t visible when Enfold is activated because the WC lightbox script is disabled by default so it doesn’t conflict with the Enfold one.
Cheers!
JosueAugust 6, 2014 at 12:57 pm #300621This reply has been marked as private. -
This topic was modified 11 years, 2 months ago by
-
AuthorPosts
- The topic ‘Product images pop up in a light box’ is closed to new replies.
