Best practice for displaying different sidebars based on page/subpage (3 posts)

  1. Seth Stevenson
    Posted 5 years ago #

    I'm just curious what the best way is to display multiple sidebars (widget areas) based upon what page you're viewing. I would like to have one sidebar show up for one page and all of it's subpages and a different subpage for another page and subpages and so on.

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    You could use custom page templates, the is_page_template() conditional and a number of different sidebars called appropriately using get_sidebar.

  3. X
    Posted 4 years ago #

    what about if I want to use the same page template but use the page ID to call different sidebars.
    Also for the subpages for those pages.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.