Templates is an extension for the Forge page builder plugin. It adds the ability to create reusable pieces of content, which you can then insert into your pages to save time and speed up your development process.
This extension is a great tool for anyone that constantly needs to create the same types of content over and over, like web developers or agencies that do web design services.
Once the extension is installed and activated, you will find a new section called Templates in the Forge menu of your WordPress admin. In here, you will see a table that lists all the templates you have created, as well as a way of creating new ones:
If you are currently editing a page and need to manage your templates, you can open the Tools menu of the builder, and you will find a link to this section as well.
Creating and managing templates
To create a new template, all you need to do is type the name in the form, and click on Create Template. This will generate a new entry in the table, and take you directly to the page builder. You can then create your cotnent jsut like you would do in a normal page.
Once you are done, you can click on the Exit button of the builder (top right corner), and you will be taken back to the template listing.
If you need to delete a template, simply click on the Delete button. Be aware that templates do not go into the trash, like most posts in WordPress do! This action will permanently erase your template.
As you create new templates, they will appear in the element collection of the page builder like any other element. You can identify them by their green border.
Like any other element, you can drag a template from the element collection into your page in order to use it.
As soon as you drop the template into a part of your layout, it will transform into the set of elements that the template is composed of, and then become a normal set of elements like any other.
In other words, templates are not a type of element per se, but instead a set of normal elements that are automatically imported when used.
The newly-added elements will behave like any other, and you can edit them and even move them around as you see fit. They can also be deleted just like you would with any other part of your page.
It is worth noting that you cannot use templates when editing a template. This means the collection will not display any templates.
Displaying templates on widget sidebars
The Templates extension also adds a Forge Builder widget in Appearance > Widgets. This widget will allow you to use one of your existing templates in a WordPress sidebar, regardless of which page is being shown.
That way, you can construct any kind of layout in a Forge Template, and then use it anywhere on your site. The widget provided by Templates is also compatible with widgetized homepages, such as the one that Genesis uses.
Displaying templates anywhere
Furthermore, Templates also adds a WordPress shortcode that you can use just about anywhere. The shortcode works in the following fashion:
Using this shortcode will embed the selected template onto the content of a normal post or page. This is especially useful when you need to create a standard post using the admin area, but also need to insert some custom content inside of it.
You can find a shortcode sample on the Templates list, ready to be copied and used.