• Resolved Vernon Fowler

    (@vernonfowler)


    This is a fantastic plugin. Out of the box, my Help Notes are using the standard blog post template. Can I create a different template for use in my (child) theme? If yes, what filename and other conventions do I need to follow to create/adapt a template that the Help Notes can use?

    Thanks for your time.
    Cheers,
    Vernon

    https://www.ads-software.com/plugins/role-based-help-notes/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Justin Fletcher

    (@justinticktock)

    Hi Vernon,

    Yes the custom post types that are created by ‘Help Notes’ will be following the wordpress way of things which is explained in the Template_Hierarchy (https://codex.www.ads-software.com/Template_Hierarchy).

    So for an example help note for the user role “staff” the custom post type name will be h_staff (you can see this from the url of a help notes page, so long as you have selected ‘Post name’ within settings..Permalinks).

    The template file then used to render the page will be the first file it finds on the list here…

    1) single-h_staff.php
    2) single.php
    3) index.php

    so you can manually create different single-{post_type}.php templates (start of by copying either of single.php or index.php) and add these to your child theme.

    Hope that answers the question?

    ..Justin

    Thread Starter Vernon Fowler

    (@vernonfowler)

    Thanks Justin. That definitely answers my question. Rock on!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is there a theme template I can modify in my child theme?’ is closed to new replies.