Online Forum To Support Coders With Technical Assistance - Read Write Execute

How to create wordpress theme woocommerce supportable

Ankit Agrawal
Ankit Agrawal
Published on February 10, 2017 · 1 min read

This code can help you to  make woocommerce supportable theme, or upgrade your existing theme with theme code your theme will be fully woocommerce supportable

(1) Add following code in functions.php file

function your-theme-name_setup() {
   add_theme_support( 'woocommerce' );
}
add_action( 'after_setup_theme', 'your-theme-name_setup' );

(2)Create a folder “woocommerce” in your theme
(3)Copy template file from “wp-content\plugins\woocommerce\templates” and paste into “wp-content\themes\your-theme-name\woocommerce”

Was this article helpful?
Ankit Agrawal

Ankit Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article How to add/remove user role in wordpress Next Article → Use in Custom Helper function Controller in cakephp