Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'init', 'my_remove_lightbox' );
- function my_remove_lightbox() {
- remove_theme_support( 'wc-product-gallery-lightbox' );
- }
- add_filter( 'woocommerce_single_product_zoom_enabled', '__return_false' );
- add_filter( 'woocommerce_single_product_image_thumbnail_html', 'custom_remove_product_link' );
- function custom_remove_product_link( $html ) {
- return strip_tags( $html, '<div><img>' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement