Update classic-theme-developer-handbook.md

This commit is contained in:
Brent MacKinnon 2023-11-28 10:56:52 -04:00
parent 8d2489de29
commit 6e039e8578
1 changed files with 3 additions and 11 deletions

View File

@ -26,17 +26,9 @@ This solution allows you to create a new template page within your theme that is
To set up this template page:
1. Duplicate page.php
Duplicate your themes page.php file, and name it woocommerce.php. This file should be found like this: `wp-content/themes/YOURTHEME/woocommerce.php`.
2. Edit your page (woocommerce.php)
Open up your newly created **woocommerce.php** in a text editor, or the editor of your choice.
3. Replace the loop
Next you need to find the loop (see [The_Loop](http://codex.wordpress.org/The_Loop)). The loop usually starts with a:
1. **Duplicate page.php:** Duplicate your themes page.php file, and name it woocommerce.php. This file should be found like this: `wp-content/themes/YOURTHEME/woocommerce.php`.
2. **Edit your page (woocommerce.php)**: Open up your newly created **woocommerce.php** in a text editor, or the editor of your choice.
3. **Replace the loop:** Next you need to find the loop (see [The_Loop](http://codex.wordpress.org/The_Loop)). The loop usually starts with a:
```php
<?php if ( have_posts() ) :