-
AuthorPosts
-
April 27, 2016 at 7:22 pm #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.
April 27, 2016 at 8:42 pm #623339I’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');
April 27, 2016 at 9:29 pm #623350Hey!
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 patienceRegards,
BasilisApril 27, 2016 at 10:36 pm #623378Link attached.
April 28, 2016 at 3:06 pm #623804Any update?
April 29, 2016 at 4:34 pm #624629Is no one able help regarding this? I can’t be the only one with this request.
April 30, 2016 at 5:16 pm #625075As i got no help and after scouring the forums for nearly 2 hours i found this thread:
Which includes the resolutions.
May 1, 2016 at 6:39 am #625235 -
AuthorPosts
- You must be logged in to reply to this topic.