Skip to content

Instantly share code, notes, and snippets.

@kloon
Created August 30, 2013 08:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kloon/6387627 to your computer and use it in GitHub Desktop.
WooSlider Single Product Image slideshow - Replace the featured single product image with a WooSlider slideshow of images
<?php
add_filter( 'woocommerce_single_product_image_html', 'wc_product_image_slider' );
function wc_product_image_slider() {
return do_shortcode( '[wooslider slider_type="attachments"]' );
}
?>
@spiderflystudios
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment