Are you looking to create a single page template? Sometimes it can be challenging to find a template that fits your website’s unique requirements. In such cases, creating a custom single page template in WordPress can be a great way to showcase your content in a unique and personalized way.
Requirement – This is a feature of Nexter Extension (Free) plugin, make sure its installed & activated to enjoy all its powers.
With the Nexter Theme Builder, you can easily create custom single page templates without having to know how to code. Whether you want to create a custom blog post template, portfolio page or any other type of single page template, the Nexter Builder has got you covered.
To create a single page template using the Nexter Theme Builder, follow the steps –
1. From the Dashboard, go to Nexter Settings > Theme Builder > Add New Template.
2. In the popup, select Single Page from the Select Template dropdown.
3. Then, in the Name of Template field, add the template name.
4. Then, click on the Next button.
5. On the next screen, you have to set the appropriate display conditions. From the Include/Exclude dropdown, you can choose whether to show or hide the template in the selected locations.
6. Then from the second dropdown, you have to select the location. Here you’ll find many single page template related location options –
- Front Page – This will target the home page of the website.
- All Posts – This will target all the single post pages, you can also select individual blog posts from the additional field.
- Posts : Category – This will target single post pages by category, you can also select individual categories from the additional field.
- Posts : Child Categories – This will target single post pages by subcategory, you can also select individual parent categories from the additional field to target its subcategory.
- Posts : Tag – This will target single post pages by tags, you can also select individual tags from the additional field.
- Posts : By Author – This will target the single post pages by author, you can also select individual authors from the additional field.
- All Pages – This will target the single pages, you can also select individual pages from the additional field.
- Pages : By Author – This will target the single pages by author, you can also select individual authors from the additional field.
- All Media – This will target the media pages, i.e. images, pdf files etc.
- Media : By Author – This will target the media pages by author, you can also select individual authors from the additional field.
Note: You’ll get additional plugin specific options for Elementor, WooCommerce and Custom Post Type plugins.
Select the appropriate option for your template.
Based on the option selected, you’ll get an additional field to select the individual item of the source.
Note: You can add multiple locations.
You can click on the + Add Conditions button to add additional conditions. Follow the same process to add multiple conditions.
Note: Using multiple conditions, you can include the template in a certain location and exclude it from a certain location at the same time.
From the Preview Type and Preview ID dropdowns, you can select a post type and individual post respectively to check the template preview.
So when you check the template preview using the WordPress Preview option, it will use your selected post or page.
7. Once done, then click on the Create button.
8. Then it will open the WordPress editor, where you can use the WordPress blocks or Elementor to create the actual layout and content of the template. Be sure to use single post blocks or widgets to ensure that your content is displayed correctly.
For WordPress block editor users, you can use the single post blocks available in Nexter Blocks to enhance your template building experience. For Elementor users, you can use the single post widgets available in The Plus Addons for Elementor.
9. Once done, publish the template.
Now your single page template will be created and will show as per the set display conditions.
Also, check How to Create an Archive Template in WordPress for Free.