Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #623303

    Hello,

    I was wondering if there was something in enfold theme stopping the thumbnails showing in the main product image.

    At the moment i have disable lightbox to the main image but the thumbnails still show up in lightbox.

    I found this script which works with the standard wordpress theme when placed in the header.php:

    <script type="text/javascript">
    jQuery(document).ready(function() {
    	jQuery(document).on('hover','.thumbnails .zoom', function() {
            var photo_fullsize =  jQuery(this).find('img').attr('src').replace('-250x250','');
            jQuery('.woocommerce-main-image img').attr('src', photo_fullsize);
            return false;
        });
    });
    </script>

    But it doesn’t work when the enfold theme is activated.

    Any help with a workaround would be appreciated.

    #623339

    I’ve also tried adding the following code found here: https://kriesi.at/support/topic/change-main-product-image-using-thumbnails-beneath/

    function add_custom_target(){
    ?>
    <script>
    jQuery(document).on('mouseenter','.thumbnails .zoom', function(){
    var photo_fullsize = jQuery(this).find('img').attr('src').replace('-200x300','').replace('-169x300','').replace('-300x111','').replace('-300x200','').replace('-214x300','').replace('-300x169','');
    jQuery('.woocommerce-main-image img').attr('src', photo_fullsize);
    return false;
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_target');
    #623350

    Hey!

    can u please show is your web site, so we can see how and if the code is been generated properly?
    Thanks a lot for your patience

    Regards,
    Basilis

    #623378

    Link attached.

    #623804

    Any update?

    #624629

    Is no one able help regarding this? I can’t be the only one with this request.

    #625075

    As i got no help and after scouring the forums for nearly 2 hours i found this thread:

    CLICK HERE

    Which includes the resolutions.

    #625235

    Hi,

    Sorry for the late reply and thanks for sharing that thread, so I gather that solved you problem? Please let us know if you have any further problems on the topic.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.