Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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 10 years, 3 months ago by mmsdev.
    #299042

    Hey 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,
    Ismael

    #299316

    Hi.

    Thanks for the info but that does not work.

    #299480

    Hi!

    Please remove browser cache then reload the page a few times. It does work when I test it on my installation.

    Regards,
    Ismael

    #299656
    This reply has been marked as private.
    #299678

    Hi!

    Can you please post a screenshot and show the image you would like to remove?

    Cheers!
    Yigit

    #299690
    This reply has been marked as private.
    #299700

    Hey!

    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,
    Yigit

    #299712
    This reply has been marked as private.
    #299747

    woocommerece should have the option to disable/enable the lightbox see attachment.

    http://cld.wthms.co/BRRa

    But this section is missing within woocommerece settings when using Enfold theme, if you switch to 2013 theme its comes back.

    #299966

    Hi!

    Lightbox is disabled now. I put a code in your child theme functions.php.

    Regards,
    Josue

    #300421
    This reply has been marked as private.
    #300487

    Hi!

    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!
    Josue

    #300621
    This reply has been marked as private.
Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Product images pop up in a light box’ is closed to new replies.