Select an existing template by clicking the Select Template dropdown.
Create a new template by adding a template name in the New Template field and clicking the Add button.
The Content tab contains the HTML that will be rendered when the template shortcode is used on your website. For example, if your template content for my-template is:
<p>Hi, I'm a template.</p>
Then that content should appear when you insert this Shortcode block on your WordPress page:
Every time you include a shortcode with the name of a template, that content will appear in its place.
Developers can switch between the Live branch of templates and a Dev branch of templates that only they will see on the front end. By default, the Live branch is selected, meaning any changes to the templates will appear live to all.
To synchronize the Live and Dev branches, you can Pull Live to Dev or Push Dev to Live. Either of these will overwrite any changes in the branch you're pulling/pushing to.
Clicking the Update button will pull the latest base templates from the VendorFuel repository and overwrite your existing templates. Do not do click this unless you're wanting to reset your templates.
You can set a specific number of edits or versions to save each time you click Update Template. By default, this number is set to 0. To revert a template to a previous version, use the Select Template dropdown to select the template, then click the Revert button.
Template key mapping allows you to map a key to a specific page. For example, if you wanted 'catalog' to correspond to the slug
/* Get the page url that's dynamically mapped to the 'catalog' key. */const url = Utils.getPageUrl('catalog');/* Redirect the user using the url. */Utils.goToPage(url);
By default, the following template keys are set upon installation of the VendorFuel plugin:
Order By SKU