When we are performing on web site and wish to create it shopping website using woocommerce plugin. we simply go to admin plugins sections and install woocommerce plugin.
Woocommerce is a superb plugin to create a shopping web site in wordpress. once installation there are few messages appears at the top in admin panel.
Woocommerce is a superb plugin to create a shopping web site in wordpress. once installation there are few messages appears at the top in admin panel.
One message is to add woocommerce pages to your theme. however if you'll see “Your theme doesn't declare WooCommerce support” then simply need to make a small edit in your theme as mentioned below.
Just place 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 place the code at the last of the functions.php file, simply before php closing tag.
Actually it's needed to add the above code to provide woocommerce support in third party themes during a case after we are using woocommerce plugin with them.
After addition of the above code your your message showing in admin can mechanically disappear and can not show once more.
0 comments:
Post a Comment