WordPress.org

Ready to get started?Download WordPress

Forums

Can I change Widgets on a per page basis (2 posts)

  1. vbcruiser
    Member
    Posted 3 years ago #

    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?

  2. Ross Hanney
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags