WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have built my own theme, which integrates quite well with WooCommerce, but I want to know how to properly get rid of the notification on top of my theme that said my theme didn't support WooCommerce / properly declare support (going a bit further than just clicking away the message).

share|improve this question
wanted to answer my own question q&a style, but wpse won't let me... – Ewout Mar 10 '13 at 12:09
Any error messages when you try to answer? Maybe there's a reputation threshold and you'll need to wait a couple of hours. But, please, come back later and do it :) – brasofilo Mar 10 '13 at 12:43
Good find. I was just configuring a theme to work with WooCommerce yesterday and can't believe I missed that add_theme_support() idea. Though you can also just dismiss the notice and it will go away permanently. – helgatheviking Mar 10 '13 at 13:17
up vote 8 down vote accepted

Digging into the code that generates the notification (current_theme_supports('woocommerce')) gives the answer: place add_theme_support( 'woocommerce' ); in your functions.php


share|improve this answer

Add below code in function.php file of your current theme.

add_action( 'after_setup_theme', 'setup_woocommerce_support' );

 function setup_woocommerce_support()
share|improve this answer
This post is 3 years old (☉_☉) – Jeffrey von Grumbkow Jun 14 at 10:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.