Templates customization

Posterno is designed to work right out of the box with most WordPress themes. It does this by using a template hierarchy system in the same way WordPress does.

Posterno allows you to make any kind of modifications to the template files of the plugin. In this way you can make minor or major modifications to any template used by Posterno.

How files are loaded

Posterno uses a fallback template system, it works the same way the WordPress theme files do. 

  1. If a child theme is installed on your website, Posterno will look for it's templates into your child theme first.
  2. If a child theme is installed but does not have any Posterno templates, it will search into your parent theme.
  3. If no child theme is installed, Posterno will search into your main theme only.
  4. If no templates are found into your theme, Posterno will use it's default templates that come with the plugin.

How to customize the templates

In order to customize the templates of the plugin you need to create a new folder called "posterno" (without the quotes) into your custom theme's folder. Example, if your theme is "Twenty Fifteen", your theme's folder will be in

wp-content/themes/twentyfifteen

Now create a new folder called "posterno" into the "twentyfifteen" folder.

You can now copy any of the template files of Posterno, into the "posterno" folder of your theme. The template files of the plugin can be found in folder 

wp-content/plugins/posterno/templates/

on your server.

You must follow the same file/folder names and placement into your theme's folder.

What you should never do 

You shouldn't under any circumstance remove any call to the do_action() or apply_filters() WP function within the template files. If you do, you will break addons functionalities in some cases.