Title: SVI breaks layout
Last modified: November 3, 2016

---

# SVI breaks layout

 *  Resolved [Kittar](https://wordpress.org/support/users/kittar/)
 * (@kittar)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/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

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Kittar](https://wordpress.org/support/users/kittar/)
 * (@kittar)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/svi-breaks-layout/#post-8390865)
 * Followup: the title gets outputted because of my added action:
    add_action(‘woocommerce_before_single_product_summary’,‘
   woocommerce_template_single_title’, 5);
 * So ignore that part, the rest still stands – the images get outputted on:
 * do_action( ‘woocommerce_before_single_product_summary’ );
 * Despite:
    remove_action(‘woocommerce_before_single_product_summary’, ‘woocommerce_show_product_images’,
   20);
 *  Plugin Author [RosendoLabs](https://wordpress.org/support/users/drosendo/)
 * (@drosendo)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/svi-breaks-layout/#post-8396965)
 * Hi!
 * I do this to ensure better theme compatibility.
    Some themes have their way to
   add this.
 * Try disabling on your theme some “woocommerce_show_product_images” action

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘SVI breaks layout’ is closed to new replies.

 * ![](https://ps.w.org/smart-variations-images/assets/icon-256x256.png?rev=2094600)
 * [Smart Variations Images & Swatches for WooCommerce](https://wordpress.org/plugins/smart-variations-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-variations-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-variations-images/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-variations-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-variations-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-variations-images/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [RosendoLabs](https://wordpress.org/support/users/drosendo/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/svi-breaks-layout/#post-8396965)
 * Status: resolved