Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21043
    billm
    Member

    Hi; thanks for the great theme!

    I’m interested in having some pages in my site require a user be logged on. I inserted a call to auth_redirect() into one of the page templates, and it works fine, but I’d really like to be able to add a new template and call it something like “Full Width, Login Required”, so that I can select it on a page by page basis versus changing one of your existing templates. How can I do this?

    Thanks,

    Bill

    #21048
    Sakin
    Keymaster

    @billm: For this you need to build child theme and then create the page template.
    For Child Theme: http://codex.wordpress.org/Child_Themes
    For Page Template: http://codex.wordpress.org/Page_Templates

    #21149
    billm
    Member

    I created a page template, which is an exact copy of the page-fullwidth.php template file, but with my auth_redirect() statement at the beginning. My function works, but the template displays like the Default template, not like the fullwidth one. There must be some other place one defines this function, since if I change the code in the fullwidth.php file itself, it works correctly. Where should I look?

    Thanks,

    Bill

    #21185
    Sakin
    Keymaster

    @billm: For detail customization please user Hire a customizer. As you need to add body_class or you need to add css to support your new template.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add a new per-page template’ is closed to new replies.