SVI breaks layout
-
Hi,
I’m not sure what you’ve changed in the recent versions of the plugin but it now breaks my layout. As far as I’ve seen, your plugin hooks to woocommerce’s action ‘woocommerce_before_single_product_summary’, which wasn’t the case before. My theme uses:
remove_action(‘woocommerce_before_single_product_summary’, ‘woocommerce_show_product_images’, 20);
and then calls:
woocommerce_show_product_images();
Later on in the template in a <div> tag.
The expected behaviour should be that the default product images are simply replaced with SVI product images and it’s javascript. (as was the case with SVI a couple of versions ago)But now what happens is that SVI outputs the images on the above mentioned action, despite the fact I’ve removed ‘woocommerce_show_product_images’ from it. And what’s more bizzare it outputs an <h1> title upon calling woocommerce_show_product_images();
Commenting out the said action:
//do_action( ‘woocommerce_before_single_product_summary’ );it will output the images when manually calling woocommerce_show_product_images();
BUT again, it outputs the product title for some reason as well.I hope I explained the issue clearly, please consider it.
Thanks,
Matt
- The topic ‘SVI breaks layout’ is closed to new replies.