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/
for some dumb reason this isnt mentioned on Woo’s site as far as i can gather.
thanks for the help.
:)
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.
Thanks for this. Bump!
Hi, I added this to my function.php but I still see the warning message.
I’m using Genesis framework, any idea?
Thank you.
Hi, I’ve emailed you!
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');
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
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 thefunctions.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!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
wow thanx it took hours of me… just simple… good job ;)
Thank you so much! This (Your theme does not declare WooCommerce support) has been bugging me for so long.
Thanks! its worked.
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!!
So the add_theme_support(‘woocommerce’); works now. But my shop cart is effected. It wont add any products it keeps saying its empty..
Adding a theme support option to the functions.php file would not affect your cart, something else is acting up here.
Thank you .
Appreciate the help!
http://docs.woothemes.com/document/third-party-custom-theme-compatibility/
Maybe this could help.
Indeed, their documentation seems to have improved since I originally wrote the post :)
Hi,
Thanks for posting this solution, it just saved my day and business :)
Cheers!
Thanks so much. It’s helpul
hy ive added it into fxn.php but my woocomerce products are not clickable still
Sounds like you have a very different problem to the one outlined in this blog article.
Great work ! Thanks for this :)
Hi
I’ve used your solution and it works well. So thanks. But is it stable when the theme will be updated?
Regards,
Ali
As long as you put the line into your own theme and not a 3rd party theme, yes it is stable. If you’re using a 3rd party theme and no child-theme then just click the “hide” button.
I’m using Sydney theme(free version). So, will I have any trouble in the future?
If you put the code into the Sydney theme then, yes, on upgrade you will lose the change. But if you put the change into your own theme, i.e. a child theme, then you will be safe.
https://codex.wordpress.org/Child_Themes
Thanks …It worked!!!!