Summary

The Custom Template feature allows you to create a New Custom Template or Duplicate an existing Template.

custom-templates2.png

Note: Themler outputs CMS content using the Posts control. By default, this control is located inside the Sidebars control in the CMS Content Area .
The CMS Content Area is a shared area, which means that the Posts control will inherit either the default appearance of the Posts controls or the appearance of the Post control from the template you duplicated to create the custom template.
Please refer to this chapter which explains how to customize the Posts control on the selected template.

Usage

Post, Page

To create a custom Post or Page Template, either copy the existing Template or add a new template of the appropriate type: "Post" or "Page":

add-page-template.png

Then select a new template under the WP Admin Panel >> Post/Page settings:

page-template2.png
post-template.png

Home, Blog, 404

To create alternative Home, Blog, or 404 templates, you simply need to create a New Template of the appropriate Template Type or duplicate an existing Template.
Then you can switch between templates under the WP Appearance >> Theme Options:

theme-options-blog.png

Product Details, Products

Unfortunately, WooCommerce does not support assigning different templates to Product Categories or single Products.
However, you can create alternative templates and switch between them under the WP Appearance >> Theme Options. See the screenshot above.

store-templates.png

Category templates

The Custom Template feature supports creating custom templates for different WP categories.
Let's say we have category called "News" which has Slug "news".

  1. Add a new template of "Custom Template" type in Themler.
    In our example it should be called "news":

    cat-temp1.png

  2. According to WP Codex the template file should be named as category-slug.php:

    cat-temp-2.png

  3. Save changes. Now this new template will be automatically used on the "News" category view page.

Note: you can use Category ID( category-id.php ) instead of Slug:

category-5.php

In the same manner as above, you can create custom templates for Archives, Tag archives, Taxonomies, etc. For more details, please view WP Template Hierarchy

See also

Themler Templates
WP Template Hierarchy
WP Category Templates
WP Taxonomies

### Summary The **Custom Template** feature allows you to create a New Custom Template or Duplicate an existing Template. !custom-templates2.png! **Note:** Themler outputs CMS content using the **Posts** control. By default, this control is located inside the [Sidebars](page:9037) control in the **CMS Content Area** . The **CMS Content Area** is a shared area, which means that the Posts control will inherit either the default appearance of the Posts controls or the appearance of the Post control from the template you duplicated to create the custom template. Please refer to [this chapter](page:9037#customize-posts) which explains how to customize the Posts control on the selected template. ### Usage #### Post, Page To create a custom Post or Page Template, either copy the existing Template or add a new template of the appropriate type: "Post" or "Page": !add-page-template.png! Then select a new template under the **WP Admin Panel** >> **Post/Page** settings: <div style="float: left; margin-right: 10px;">!page-template2.png!</div><div style="float: left;"> !post-template.png!</div><div class="clearfix"></div> #### Home, Blog, 404 To create alternative Home, Blog, or 404 templates, you simply need to create a **New Template** of the appropriate **Template Type** or duplicate an **existing Template**. Then you can switch between templates under the **WP Appearance** >> **Theme Options**: !theme-options-blog.png! #### Product Details, Products Unfortunately, WooCommerce does not support assigning different templates to Product Categories or single Products. However, you can create alternative templates and switch between them under the **WP Appearance** >> **Theme Options**. See the screenshot above. !store-templates.png! #### Category templates The **Custom Template** feature supports creating custom templates for different WP categories. Let's say we have category called "News" which has **Slug** "news". 1. Add a new template of "**Custom Template**" type in Themler. In our example it should be called "news": !cat-temp1.png! 2. According to [WP Codex][1] the template file should be named as **category-slug.php**: !cat-temp-2.png! 3. **Save** changes. Now this new template will be automatically used on the "News" category view page. **Note:** you can use **Category ID**( *category-id.php* ) instead of **Slug**: `category-5.php` In the same manner as above, you can create custom templates for **Archives**, **Tag archives**, **Taxonomies**, etc. For more details, please view [WP Template Hierarchy][2] ### See also Themler Templates [WP Template Hierarchy][2] [WP Category Templates][3] [WP Taxonomies][4] [1]: https://codex.wordpress.org/Category_Templates [2]: http://codex.wordpress.org/images/9/96/wp-template-hierarchy.jpg [3]: https://codex.wordpress.org/Category_Templates [4]: https://codex.wordpress.org/Taxonomies