Title: [Plugin: WooCommerce &#8211; eCommerce plugin for WordPress] Template problem
Last modified: August 20, 2016

---

# [Plugin: WooCommerce – eCommerce plugin for WordPress] Template problem

 *  [owcv](https://wordpress.org/support/users/owcv/)
 * (@owcv)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/)
 * Some shop pages (all products, single, category) change my theme layout, e.g.
   my sidebar is replaced with the standard one and is outputted below the shop 
   content instead of on the right side. Also the footer is resized. One of the 
   developers of the theme (Atahualpa) I use wrote:
 * _“Atahualpa sets a global variable ‘$cols’. I would guess that WooCommerce is
   using that same variable and not resetting it to it’s existing value. You should
   contact the plugin author about this.”_
    [http://forum.bytesforall.com/showthread.php?t=15624](http://forum.bytesforall.com/showthread.php?t=15624)
 * Can you help with this?
 * [http://wordpress.org/extend/plugins/woocommerce/](http://wordpress.org/extend/plugins/woocommerce/)

Viewing 15 replies - 1 through 15 (of 60 total)

1 [2](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/page/4/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/page/2/?output_format=md)

 *  [AminkaOzmun](https://wordpress.org/support/users/aminkaozmun/)
 * (@aminkaozmun)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342320)
 * I have a very similar problem, it seems.
 * I’m using the InStyle theme from Elegant Themes and on the product pages the 
   layout’s totally messed up, with the sidebar underneath the content and the featured
   image stretched out, et cetera — generally, a mess.
 * I’ve looked at the WooCommerce User’s Guide but everything seems so simple; not
   sure why images are not working properly, being forcibly stretched out no matter
   what setting I poke at. I even looked at the WooCommerce Codex and copy-pasted
   the snippets of code they offered to no avail.
 * Interesting, the cart page is just fine!
 *  Thread Starter [owcv](https://wordpress.org/support/users/owcv/)
 * (@owcv)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342361)
 * In the changelog of 1.1.2 is stated:
 * “Renamed $columns global for compatibility with certain themes”
 * Unfortunately the problem still persists…
 *  [bmwright005](https://wordpress.org/support/users/bmwright005/)
 * (@bmwright005)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342372)
 * Any solutions to this issue yet? I am having the same issue. Also having an issue
   of product just not showing up at all in the “shop” page.
 *  [soulonfiya](https://wordpress.org/support/users/soulonfiya/)
 * (@soulonfiya)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342374)
 * I had the same problem and found the solution [here](http://www.woothemes.com/woocommerce-codex/theming-woocommerce/).
   
   This is what removed the sidebar
 * Unhook (remove) the WooCommerce sidebar on archive pages
 * add_action(‘wp’, create_function(“”, “if (is_archive(array(‘product’))) remove_action(‘
   woocommerce_sidebar’, ‘woocommerce_get_sidebar’, 10);”) );
    Unhook (remove) the
   WooCommerce sidebar on individual product pages
 * add_action(‘wp’, create_function(“”, “if (is_singular(array(‘product’))) remove_action(‘
   woocommerce_sidebar’, ‘woocommerce_get_sidebar’, 10);”) );
    Unhook (remove) the
   WooCommerce sidebar on all pages
 * remove_action( ‘woocommerce_sidebar’, ‘woocommerce_get_sidebar’, 10);
 *  [Kurukulie](https://wordpress.org/support/users/kurukulie/)
 * (@kurukulie)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342378)
 * I have the same problem as Aminka Ozmun….
    I kind of understand the hook thing
   SoulOn Fiya but I just don’t know where to place the code…which file I need to
   add it to, in which folder….. I’m fairly new at wp and new to code too!! I am
   using a Pleng (themeforest) and building my site locally. I have dreamweaver 
   and good old text edit as far as programs are concerned. Could anyone point me
   in the right direction… to a video… tutorial ….or be totally amazing and tell
   me. Pretty please 🙂 ….
 *  [soulonfiya](https://wordpress.org/support/users/soulonfiya/)
 * (@soulonfiya)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342379)
 * Open up dreamweaver and look for the functions.php file in your Pleng theme folder.
   I added it towards the end so before the ?>. You also can add // WooCommerce 
   before it so you’ll know where to find it in the future. so it would like this;
 * // WooCommerce
    add_action(‘wp’, create_function(“”, “if (is_archive(array(‘product’)))
   remove_action( ‘woocommerce_sidebar’, ‘woocommerce_get_sidebar’, 10);”) ); Unhook(
   remove) the WooCommerce sidebar on individual product pages
 * add_action(‘wp’, create_function(“”, “if (is_singular(array(‘product’))) remove_action(‘
   woocommerce_sidebar’, ‘woocommerce_get_sidebar’, 10);”) );
    Unhook (remove) the
   WooCommerce sidebar on all pages
 * remove_action( ‘woocommerce_sidebar’, ‘woocommerce_get_sidebar’, 10);
 *  [Kurukulie](https://wordpress.org/support/users/kurukulie/)
 * (@kurukulie)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342380)
 * Hey SoulOnFya,
    Thanks heaps for taking the time to reply!!! Unfortunately it
   didn’t work, it seems that all my content on the woocommerce pages still look
   like they are in the header section and are still messing up my layout… 🙁 Oh
   well, guess I will keep trolling the internet to see if anyone else has the same
   problem and has found a solution. Thanks again!!! Josie
 *  [gearheaddeals](https://wordpress.org/support/users/ghdwpadmin11/)
 * (@ghdwpadmin11)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342382)
 * I am having this same problem with a customer’s site. They are running graphene
   theme and it moves the sidebar to the bottom of all pages. I tried the above 
   fix by editing the functions.php file and it killed the site giving a 404 error.
   I had to reload wordpress because as many times as I tried and different ways
   to re-upload the original functions.php, it would not resolve itself.
    I’ve contacted
   the owner of woocommerce and we are discussing over email. Hopefully they can
   build in a robust bit of code that prevents this from happening.
 * Anyone else?
 *  [soulonfiya](https://wordpress.org/support/users/soulonfiya/)
 * (@soulonfiya)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342383)
 * that’s weird cause it worked for me. I’m using the hybrid theme so the set up
   might be different. Are you guys making changes in a child theme? That’s the 
   safest way. Theres usually a folder within you theme folder called includes that
   my contain additional functions.php files. You might want to look in their.
 * Hoping somebody with more experience with this could hop on and add more input.
 *  [gearheaddeals](https://wordpress.org/support/users/ghdwpadmin11/)
 * (@ghdwpadmin11)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342384)
 * So which functions.php file is accessed through /wp-admin?
    Isn’t that the child
   theme file?
 *  [soulonfiya](https://wordpress.org/support/users/soulonfiya/)
 * (@soulonfiya)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342387)
 * If you have a child theme yes. I just know some themes have a an includes folder
   sometimes that have a functions.php file but that not the case for all.
 * I’m testing another theme to see if I can figure this out and still googling 
   more solutions. My biggest issue with woo commerce is not being able to assign
   a page template like my regular pages.
 *  [salsatrips](https://wordpress.org/support/users/salsatrips/)
 * (@salsatrips)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342403)
 * woocommerce causes the same issue with Thesis and some other themes, which I 
   have tried. Did anybody find a solution to it? Thank you
 *  [ITfee](https://wordpress.org/support/users/epistates/)
 * (@epistates)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342404)
 * you only could fix it with using a childtheme of woocommerce styles inside your
   theme folder. here is described how:
    [http://www.woothemes.com/woocommerce-codex/theming-woocommerce/](http://www.woothemes.com/woocommerce-codex/theming-woocommerce/)
 * not a very good solution though, because unfortunately you have to upload that
   folder over and over again after every update.
 * the other mess is, that woocommerce loads tons of css, js and so on, when i open
   my website. what slows it down. would be better if woocommerce only loads styles
   and scripts when needed.
 *  [sidd82](https://wordpress.org/support/users/sidd82/)
 * (@sidd82)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342407)
 * [This](https://github.com/jigoshop/Jigoshop/wiki/How-to-Properly-Wrap-Jigoshop-Content-in-your-WordPress-Theme)
   solved the problem for me 🙂
 *  [salsatrips](https://wordpress.org/support/users/salsatrips/)
 * (@salsatrips)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/#post-2342408)
 * The last post is about Jigoshop. Even that I learned that they are similar, I
   don’t know, how to adopt the code to get woocommerce running with Thesis. Can
   anybody help implementing one of the suggestions? Please pm to [mail@salsa-trips.com](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/mail@salsa-trips.com?output_format=md)
   THX!

Viewing 15 replies - 1 through 15 (of 60 total)

1 [2](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/page/4/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/page/2/?output_format=md)

The topic ‘[Plugin: WooCommerce – eCommerce plugin for WordPress] Template problem’
is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 60 replies
 * 37 participants
 * Last reply from: [lakedude007](https://wordpress.org/support/users/lakedude007/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-woocommerce-ecommerce-plugin-for-wordpress-template-problem/page/4/#post-2342480)
 * Status: not a support question