Developing Custom Templates
FuneralPress offers the ability to create custom templates! Custom templates are located in the plugin directory under the folder "/templates/" You can overide any of the se templates in your theme folder by create a new folder called "wp-funeral-press". There are two ways to overide templates,
- At the global level on the settings page, choose the template you would like to assign to all obituaries. It can be a default template, modified default template or a custom template in your theme directory.
- Each Obituary has its own settings to modify templates as well, if you want to create a specific template for an obituary just select the template from the dropdown. You have access to the default templates, modified templates and custom templates.
This works as a great upsell tool, you can offer an array of beautifully designed templates with different styles for an extra fee or a complete custom template. Check out the video to see how we developed one for Bob Marley. https://www.youtube.com/watch?v=rGGBD2dXJMM
How to create a template
[caption id="attachment_149" align="alignnone" width="778"] Main FuneralPress Folder[/caption] [caption id="attachment_148" align="alignnone" width="780"] Template oflder containing all template files[/caption] To overide the main obituary template copy obit-default.php to "/yourtheme/wp-funeral-press/obit-default.php" [caption id="attachment_154" align="alignnone" width="768"] Copy the template file to your theme directory[/caption] Now that you have the template file in your theme directory you can open the file and make your edits. You can change all aspects of the single obituary page with this template! If you are looking for the loops on the obituary listings page please copy over the loops section for the method you are using "block","thumbnails" or "list" You can also create custom templates, to do so just make a file in your theme directory in the main /wp-funeral-press/ folder with a file name structure like this: obit-yourtemplate.php where your template is the template name. You can see the example above "obit-alternate-modified.php" Once you create the template you can now use it to assign as the global template or directly to an obituary if needed.