We can create a page template to use products in a site. Usually, a product landing page is different to a normal page and has different headers and footers. Let's create the product page template. Follow these steps:
- Log in to the WordPress Dashboard as an administrator.
- Click the Pages menu.
- Click the Add New button.
- Go to Page Attributes section on the right hand column.
- Click dropdown field for Template setting to get a screen similar to following:
- Open the wp-content/themes/twentytwentychild folder using a file manager.
- Create a new template called product.php.
- Add the following code to the product.php file to define ...