Your theme does not declare WooCommerce support

If you’ve written your own WooCommerce theme and have just upgraded to WooCommerce 2.0 then you might be seeing this message on your site:

Prevent WooCommerce 2.0 Theme Support Warning

Your theme does not declare WooCommerce support

Your theme does not declare WooCommerce support – if you encounter layout issues please read our integration guide or choose a WooCommerce theme :)

If it’s only ever going to affect you and nobody else then just click the “Hide this notice” button and be done with it, but if you intend to provide your theme to customers you might want to suppress that message before the customer sees it.

A quick search of the Internet revealed a slew of people asking how to stop the message appearing, but I couldn’t see any answers at all. Not even in WooCommerce’s own documentation. Looking through the code the solution is actually incredibly simple (like so many things). Just add this somewhere appropriate in your theme’s functions.php (near the top or in an init function would make sense):


Save and done, no more message!

Edit 28/10/2014:

As Francisco points out in the comments, WooThemes now provide a page that discusses this topic.

About Matt Lowe

Matt Lowe is a WordPress web designer / developer based in Newbury, Berkshire. After 8 years of doing the nine-to-five for other companies and watching them make the same mistakes over and over he set out in business on his own, forming Squelch Design to help businesses get online and make money.

21 comments on “Your theme does not declare WooCommerce support

    • Yep, I couldn’t find it anywhere on the WooCommerce site, or elsewhere for that matter. The cynical part of me thinks WooCommerce don’t want to tell people how to prevent that message, because they want to advertise WooThemes to the end users. I wouldn’t be surprised if we see similar “features” in future versions of WooCommerce.

  1. Hi, I added this to my function.php but I still see the warning message.
    I’m using Genesis framework, any idea?
    Thank you.

  2. Thank you for your quick reply. I’m also using Dynamik child theme for Genesis and this is what I have in my functions.php :

    /* Do not remove this line. Add your functions below. */

    // Enable GCW
    add_theme_support( 'genesis-connect-woocommerce' );


  3. I am seeing this on both of my websites and I am using a woo-theme for ShopSheOnline “Your theme does not declare WooCommerce support – if you encounter layout issues please read our integration guide or choose a WooCommerce theme :)” I am not a web designer and I have no idea where I am to put these codes at? Please let me know what I am doing wrong?

    Thank you

    • Hi Robyn, if you’re not the developer of the theme you should be able to just click the button that says “Hide this notice” and you shouldn’t see the message again. The instructions above are intended for people who write themes for WooCommerce.

      If you do need to follow my instructions then you should go into your WordPress root folder, then go to wp-content/themes/{the name of your theme}/ and edit the functions.php file in that directory with a suitable text editor, adding the given code after the <?php line at the top of the file. But if you’re not a web developer I suggest staying clear of the file altogether as there is the potential to do more harm than good. Maybe hire someone to do it for you, it’s a 5 minute job!

  4. Hey Matt,
    I tried adding that into functions.php and nothing happened. Not sure if i did it right or why it wouldn’t work. Let me know if you could help, please!!

Leave a Reply

Your email address will not be published. Required fields are marked *