Responsive WordPress Theme – Caliber

A theme with simple controls and limitless potential. Work fast and build an amazing website!   Find out more »

UpThemes – Beautiful WordPress Themes

Create a site your church, gallery, newspaper, blog, recipes, band and more!   See the themes »

Need a little help?  Find answers quickly by searching the forum.
Group Admins
  • andy
  • jeffw

Support for: Salutation: WordPress + BuddyPress Theme

Salutation (WordPress)

Public Group  |  active 4 years, 5 months ago ago
Viewing post 1 to 3 (3 total posts)

Steps to make a custom page template

  • ianmac

    said

    Hi

    Please can I ask for some steps to get me started creating a new template? I wish to have a second template in addition to ‘Default Template’ under ‘Page Attributes’ which is the essentially the same as Default Template but I want to add is_user_logged_in() so it will be a Private Page Template.

    Many thanks.

  • jeffw

    said

    Hi, ianmac.

    The procedure for creating a custom page template is no different for the Salutation theme than it is for any other theme. Just create a PHP file with the required comments at the top, and then whatever code you put in that template will be displayed in the content area of the page, i.e. underneath the header and above the footer.

    Note that the Salutation theme already contains [members_only] and [public_only] shortcodes that enable you to display different content to logged-in and logged-out users.

    References:
    http://codex.wordpress.org/Page_Templates#Custom_Page_Template
    http://para.llel.us/themes/salutation-wp/shortcodes/miscellaneous/

  • ianmac

    said

    Great thanks – I don’t know why I thought it looked different

Viewing post 1 to 3 (3 total posts)
Topic tags: new template, private page