Solution to : “Your theme does not declare WooCommerce support” Message
When we are working on a website and want to make it shopping website using woocommerce plugin. We just go to admin plugins sections and install woocommerce plugin. Woocommerce is a very good plugin to make a shopping website in wordpress. After installation there are few messages appears at the top in admin panel.
One message is to add woocommerce pages to your theme. But if you will see “Your theme does not declare WooCommerce support” then just need to make a small edit in your theme as mentioned below.
Solution :
Just put a single line in your theme functions.php file as mentioned below :
add_action( 'after_setup_theme', 'woocommerce_support' ); function woocommerce_support() { add_theme_support( 'woocommerce' ); }
It is better to put the code at the last of the functions.php file, just before php closing tag.
Actually it is required to add the above code to provide woocommerce support in third party themes in a case when we are using woocommerce plugin with them.
After addition of the above code your your message showing in admin will automatically disappear and will not show again.
Ok its good, thanks
after putting in the code the message went away, easy to follow instructions.