Website Building » WooCommerce » How Do I Change a Template in WooCommerce?

How Do I Change a Template in WooCommerce?

Last updated on October 1, 2022 @ 11:30 pm

To change a template in WooCommerce, firstly you will need to access your WordPress Dashboard. Once you’re logged in, hover over the ‘Appearance’ tab in the left-hand menu and click on the ‘Editor’ option. You will then be taken to the Theme Editor page.

On the Theme Editor page, you will see a list of files on the right-hand side.

Find the ‘page.php’ file and click on it to open it up.

Once the ‘page.php’ file is open, you can start editing the code. To change the template, you will need to find the line of code that says:

get_template_part( 'content', 'page' );

and replace it with:

get_template_part( 'content', 'new-template' );

where ‘new-template’ is the name of your new template file. Once you have made your changes, click on the ‘Update File’ button to save your changes.

PRO TIP: If you are not familiar with code or are not comfortable working with code, we recommend finding a WooExpert or Developer to help you make changes to your site. Making changes to your WooCommerce template files can be risky and could result in lost sales or a broken site.

Conclusion:

In order to change a template in WooCommerce, firstly you will need to access your WordPress Dashboard and then go to the Theme Editor page. On this page, find the ‘page.

To change the template, you will need to find the line of code that says: get_template_part( 'content', 'page' );. Replace this line with: get_template_part( 'content', 'new-template' );, where ‘new-template’ is the name of your new template file.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.