Home Forums Trusted Pro Trusted Pro Theme Page templates

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3627
    liamjken
    Participant

    Can I create new pages templates where I can add different widget areas on specific page.

    For example, could I have a contact pages template where i could add a sidebar that only shows on that page?

    • This topic was modified 6 years, 9 months ago by Andy. Reason: moved from Trusted to Trusted Pro
    #3638
    Andy
    Keymaster

    I recommend the Widget Options plugin.

    Install that plugin and then add a widget to the ‘Page Sidebar’ and control which pages it appears on with the extra settings that the plugin adds to the widget.

    For example, make a note of the page ID of your contact page and add is_single( '27' ) (change ’27’ for your actual page ID) in the ‘Logic’ tab of the Widget Options settings.
    The conditional tag is_single( '27' ) will only show the widget on the page with the ID of 27.

    See the image below where I have marked the location of the ‘Logic’ tab with the green arrows.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Trusted Pro Theme Page templates’ is closed to new replies.