WHAT ARE WP BETTER BUILDER TEMPLATES?
Better Builder templates allow you to override the layout of a shortcode. If you don’t like the way the shortcode looks, you can change the html markup to suite your needs. Currently, only the Template shortcode is templated. With the Template shortcode, you can template the list or the info window. If you are happy with the default look, there is no need to change the templates. If you have questions about the folder structure inside of the “templates” folder, see the structure that is found inside of the plugin. As an example, if you want to create your own template for the list of the Template shortcode, the template will be in the “betterbuilder/templates/template/” folder.
WHERE ARE THEY?
WP Post Map templates can exist in three different locations:
- The plugin – in the
templatesfolder within the plugin’s main folder. THESE SHOULD NEVER BE CHANGED
- The theme – in the
betterbuilder/templatesfolder within the theme’s main folder.
- The child theme – in the
betterbuilder/templatesfolder within the child theme’s main folder.
The plugin will look for templates in the following order: the child theme, the theme, the plugin.
HOW DO I CHANGE THEM?
To change the templates, copy the folder from the download to your child theme’s or theme’s main folder. At that point, you can edit the files and the plugin will use your edited version instead of the default version.
CAN I ADD MY OWN?
You can add your own template file within the template folders. The file should include a header in the following format:
<?php /* Better Template Name: [YOUR TEMPLATE NAME HERE] */
WHAT IF I NEED TO UPGRADE MY THEME?
When you upgrade your theme, backup the template folder to a safe location. After upgrading, if the template folder was removed, replace the templates from your backup.