Wordpress Templates Editor tab
See how to create and manage your templates in Templates Editor
Templates Editor tab
Templates Editor tab offers you everything you need to create, edit and manage your templates.
It features the templates list, short explanation of filed types, as well as the editor itself.
The template types can be extended by your own codes, so that template type offers you more than what is available originally.
Videowalls plugin is a good reference point to see how that can be easily done.
How templates work
Templates are designed to offer you a way to create / set up your code in one place and the use it in as many places as you need.
This way you have a single place where you would update your embedding.
For example, lets imagine that you have one specific recorder setup that you want to use on multiple pages. Regardless if you are using the templates or direct code, you will need to add these codes into each of those pages.
The benefit presents itself if you decide to make an update to your recorder. With direct codes you need to edit all 10 of those pages. With the template, you only need to change the template in template editor. Any place where you used the template with the template name, will immediately start loading the latest changes you made.
So benefit is that you only need to update a single place when you use templates.
If you use a template and the template gets removed at some point, depending on the template type different things can happen. By default our plugin will have several different fallbacks.
It will use your custom defined codes, the custom template you have defined for some integration, or it will fallback to our own default templates.
This way even if you do end up removing the template, it will still offer same or similar experience on pages where it was used.
Note: This might be different for some other / integrated template bases, the above explains how native templates are handled.
When to use templates and when to use codes?
In such cases templates will work as they are designed to look like WordPress shortcodes.
Benefit of templates in your WordPress website is also that you can easily set it all up even if you do not know any code.
To create a template you would need to open the templates tab.
Once you do you will quickly see the editor fields.
The Template ID field is the ID / name of your template. It will allow you to have a reference to the template to be used. This way any time your code is being used with this ID, it will load the very latest version of the same.
This is a unique name for your template and we do suggest using something that will allow you to quickly tell templates apart.
Template Editor is the next section and can look differently depending on the template base. So the first option is to select the base from the available ones in the dropdown and then to use either Easy or Expert editor.
Most common settings are available in the easy editor, while the Expert editor will allow you to change all of them manually.
Once you are happy with what you prepared, you can click on Save Template button and that is it.
- At this point you have created your own template that you can immediately use.
How to manage your templates
Updates and changes are part of everything. Our templates allow you to easily make the changes and updates when you need them.
To do this you would go to your Templates Editor in the plugin settings and at the very top you will see the list of all templates you have created.
What you will see are all of the Template IDs.
As you hover your mouse over them you will quickly notice "Edit" and "x" shown over them.
Clicking on Edit, will load its code into the templates editor and allow you to make your edits.
Clicking on the X will on the other hand remove your template.