• I’m creating a 3 column page template. I’ve got 2 sidebars registered in my functions.php file. Both of them show up in Widgets but I would like them to only show when the 3 column template is being used. How should I make the page template for this to work?

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you’ve created the 3 column template. Then you just need to include the sidebars in you template only at the required place and remove elsewhere.
    And assign the teplate to the required page from admin panel.
    And your sidebar will be shown only when the 3 column template assigned page is rendering.

    Thread Starter etespey

    (@etespey)

    That does not seem to be the case. I only have the 2 sidebars registered in my functions.php file. That’s when they show up in Widgets. I’ve got a lot of empty sidebar containers showing up in widgets and would like to hide them when they’re not being used. I haven’t created any page templates for these sidebars.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show sidebars only when active’ is closed to new replies.