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

  • 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

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


| 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()
| improve this answer | |
  • This post is 3 years old (☉_☉) – Jeffrey von Grumbkow Jun 14 '16 at 10:08
  • ...It's now 6 years old, and still useful for reference ;) – fish_r Jun 19 '19 at 23:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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