Visual Composer allows you to work with templates. A template is a set of elements formed as a ready-to-use layout. A template can be added to the page with a single click.
Once a template is added, you can replace the content of the template with your own. Using templates speeds up the process of creating a page.
You can use Visual Composer predefined templates, download templates from the Visual Composer Hub, and create your own templates to reuse them.
Note: Features like block templates, global templates, template download, and export are premium features.
How to add a template?
All downloaded and created templates can be added to your page from the Add Content Window.
Open the Add Content Window, navigate to templates and click on the template you want to add.
If you want to download more templates, visit Visual Composer Hub. The Hub gives you access to different types of templates, including page templates and block templates.
A block template is a template that can be used as a section (part) of your page.
How to create your own templates?
In Visual Composer, you can create your own templates.
To save all your page as a template:
- Open Add Content Window
- Navigate to the Templates tab
- Name your template the input
- Click "Save Template"
- The template will be saved and added to the list
In addition to page templates, you can save a part of your page as a template. You can save any row (with content included) as a template. To save row as a template:
- Open row Edit Window
- Click on the Settings icon
- Name your template the input
- Click "Save as a Block"
- The template will be saved and added to the list
To delete templates:
- Open Add Content Window
- Click on the Settings icon
- Click on the "Cross" icon of the template to delete it
Global templates
Global templates allow to display the same template on several pages and update it from one place. As you modify the global template, all copies of that template will be updated automatically.
This allows to speed up the content management process and ensure design consistency for similar blocks.
With the Global templates addon downloaded, all templates created and downloaded can be used as global templates.
To access global templates, open Visual Composer Dashboard and navigate to Global Templates. There you can edit, delete, and create new templates.
To add a global template to the page you will need to use the Global Template element. The element will be downloaded automatically together with the addon.
Once you add an element to the page, you can choose any of your templates from the dropdown menu.
Note: If you want to add a template as a regular template (not global) you can still add template through the Add Content Window.
Export and Import templates
You can export Visual Composer templates (by one or bulk) to upload them to another site.
To export the template, make sure to install the Export/Import addon from the Visual Composer Hub.
To export templates open Visual Composer Dashboard and navigate to Global Templates.
Note: You can also export headers, footers, sidebars, layouts, and popups.
In the list of templates, hover over the template you want to export and click on "Export". If you want to download several templates, select the templates and choose Export from the Bulk actions.
Your template/s will be downloaded as a zip file.
To import templates, navigate to Dashboard - Import and select a zip file that contains templates. The templates will be uploaded to your site and added to the list.