Use the power of the YOOtheme Pro page builder to create site-wide templates for index, archive and single post pages.
YOOtheme Pro allows you to build and design templates with the YOOtheme Pro page builder. A template is a general layout which applies to pages of a specific type and loads their content dynamically into the layout. For example, a post template applies the same layout to all posts. Learn more about dynamic content.
In the Templates panel you can add, edit and delete templates and assign them to different pages of any post type and taxonomy. For example, if you have a website for movie reviews, you could create templates for your blog posts but also dedicated templates for your movie reviews.
The Templates panel shows a list of all created templates grouped according to the page they are assigned to. A gray dot next to a template as well as a Builder button indicates that the template is used on the page shown in the preview.
To edit a template, simply click on it. A modal will open where you can change the template's name, status and page assignment. A Delete button is also available in the upper right corner of the modal. To add a new template, click the New Template button. Give it a Name and choose a Page to assign the template.
Note The layout of a template can only be edited if it is shown in the preview on the right. Click the Builder button to edit the layout of the template.
Templates can be assigned to the following pages. These are the same pages which can be linked in the WordPress menu. The content of your selected page will be automatically available as page sources.
|Single Post||Renders a post page|
|Single Page||Renders a single page|
|Posts Archive||Renders the posts index page displaying all posts|
|Category Archive||Renders a category page displaying all its posts|
|Tag Archive||Renders a tag page displaying all its posts|
Each custom post type has an option to assign a template to the Single Post Type page and to the Post Type Archive page if the custom post type has an archive. Each taxonomy also has an option to assign a template to the Taxonomy Archive page. For example, if you have a custom post type called Movie which has an archive page and a Movie Categories taxonomy, the following pages are available.
|Single Movie||Renders a single movie|
|Movies Archive||Renders the movies index page displaying all movies|
|Movie Category Archive||Renders a movie category page displaying all movies|
|Movie Tag Archive||Renders a movie tag page displaying all movies|
Note To create an archive for a custom post type, set the
has_archive option to
Depending on the page, there are different filter options to specify and restrict the assignment. Use the
ctrl/cmd key to select multiple options in a list.
|Single Post||The template is only assigned to posts with the selected terms. Posts from child terms are not included. If no term is selected, the template is assigned to all posts.|
|Single Page||The template is assigned to all pages. There are no further options available.|
|Posts Archive||The template is assigned to the posts index page. There are no further options available.|
|Category Archive||The template is only assigned to the selected categories. Child categories are not included. If no category is selected, the template is assigned to all categories.|
|Tag Archive||The template is only assigned to the selected tags. If no tag is selected, the template is assigned to all tags.|
Multiple templates can be assigned to the same page. In this case, the template which appears first in the templates list will be applied. Change the order of the templates using drag and drop.
There is an option to disable the template and publish it later. The template will only be shown to the editor while the customizer is open. This allows you to work on a template without it being visible for the users of your website.
Note that in multilingual websites there may be different categories for each language. Templates which are limited to certain categories in one language, need to be duplicated for each language. Change the language in the WordPress Administration and open the customizer. Create a new template and assign it to the dedicated categories for each language.