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:

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

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):

add_theme_support('woocommerce');

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. http://docs.woothemes.com/document/third-party-custom-theme-compatibility/

m4s0n501

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. He writes in the third person. Read more »

Posted on by Matt Lowe This entry was posted in Featured, Presentation, Squelch Web Design Blog, Web design, Web Development, WooCommerce and tagged , , , , , .


19 meditations upon Your theme does not declare WooCommerce support

  1. On jon mills was pontificating thus:

    for some dumb reason this isnt mentioned on Woo’s site as far as i can gather.

    thanks for the help.

    :)

    • On Matt Lowe was pontificating thus:

      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.

  2. On Alex was pontificating thus:

    Thanks for this. Bump!

  3. On Mehrdad was pontificating thus:

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

  4. On Mehrdad was pontificating thus:

    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 :

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

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

    add_theme_support('woocommerce');

  5. On Robyn was pontificating thus:

    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
    Robyn

    • On Matt Lowe was pontificating thus:

      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!

  6. On Henry Yarhere was pontificating thus:

    You are the MAN, I have search almost everywhere on the internet. Not until I got to your site there was nothing on this very issue, Thanks

  7. On sâi was pontificating thus:

    wow thanx it took hours of me… just simple… good job ;)

  8. On Alex was pontificating thus:

    Thank you so much! This (Your theme does not declare WooCommerce support) has been bugging me for so long.

  9. On Waqas Gulraiz was pontificating thus:

    Thanks! its worked.

  10. On Diana Gimon was pontificating thus:

    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!!

  11. On sm talha was pontificating thus:

    Thank you .

  12. On demetrius was pontificating thus:

    Appreciate the help!

Leave a Comment

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>