WooSlider Single Product Image slideshow - Replace the featured single product image with a WooSlider slideshow of images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_single_product_image_html', 'wc_product_image_slider' ); | |
function wc_product_image_slider() { | |
return do_shortcode( '[wooslider slider_type="attachments"]' ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you confirm that the code still works? Have tried it and it doesn't seem to do the job. Guessing some hooks may have changed. The goal I have is to create a custom toggle that will enable/disable this so I can choose to use a slideshow or not.