Skip to content

Instantly share code, notes, and snippets.

@kloon

kloon/functions.php

Created Aug 30, 2013
Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@spiderflystudios spiderflystudios commented Mar 22, 2016

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
You can’t perform that action at this time.