WordPress.org

Support

Support » Themes and Templates » Can I change Widgets on a per page basis

Can I change Widgets on a per page basis

  • Lets say I have 10 custom static pages with four widget areas in each. That’s 40 widgets in my sidebar.

    Is it possible to only show 4 widgets in the sidebar?

    When a static page is set as the home page the 4 widgets in the sidebar would correspond to that particular page.

    Is this possible?

Viewing 1 replies (of 1 total)
  • Hi Vbcruiser,

    I’m not sure I 100% understand what you’re asking, but there is a plugin called Widget Logic, which may be what you are looking for.

    It adds an text field to the settings for each widget, in which you can specify some logic to determine where / where not that widget should appear.

    For example, to have a widget display only on an ‘About’ page (with page slug ‘about’), you would add the following to the widget logic field:

    is_page('about')

    There are a large number of Conditional Tags built into WordPress that you could use in the logic field, amongst other things.

Viewing 1 replies (of 1 total)
  • The topic ‘Can I change Widgets on a per page basis’ is closed to new replies.
Skip to toolbar