Forums

Add widget to specific pages (9 posts)

  1. prologuemedia
    Member
    Posted 4 years ago #

    I am trying to use widgets in my sidebar but, I have pages in my site that require different content in the sidebar. How can I apply widgets or widget settings specifically to certain pages or based on hierarchy?

    -gl

  2. prologuemedia
    Member
    Posted 4 years ago #

    The other possibility is to add a widget without changing the existing sidebar. IS that possible?

    -gl

  3. MouseClicks
    Member
    Posted 4 years ago #

    Can you maybe do this? Have one include with your widget(s) and another one that does not. Call the appropriate sidebar to the page as needed? Something like this:

    sidebar.php (no widget)

    sidebar2.php or sidebarW.php (so you know it's got a widget)

    Deb

  4. prologuemedia
    Member
    Posted 4 years ago #

    Well, I should explain better...

    I want all of the pages to have the widget but, each page will have different sidebars. Can I load a widget via a sidebar template instead of the admin interface?

    -gl

  5. Roy
    Member
    Posted 4 years ago #

    It's a little over my head, but just look around the forum for "different sidebar" topics, such as these two:
    http://wordpress.org/support/topic/116809?replies=6
    http://wordpress.org/support/topic/119978?replies=4

    Maybe there is some inspiration there.

  6. prologuemedia
    Member
    Posted 4 years ago #

    The way I have it setup now is through page templates where I switch out the sidebar for each template. Again, the desire is to use the same widget for all the pages. However, when you add a widget via the wp admin it completely replaces the sidebar with the widget(s) you add. I just want to have the sidebar AND the widgets.

    Does this make sense? Thanks for the help thus far.

    -gl

  7. Roy
    Member
    Posted 4 years ago #

    Does this make sense?

    Not really! If you have a non widget sidebar (sidebar.php) that you code yourself, it indeed gets replaced by a "widgetized" sidebar. If you already have a sidebar that uses widgets, you should just be able to add a widget.

  8. prologuemedia
    Member
    Posted 4 years ago #

    How do you create a sidebar that uses widgets other than the wp admin? Is there any way to include them programmatically?

    -gl

  9. prologuemedia
    Member
    Posted 4 years ago #

    No one?

Topic Closed

This topic has been closed to new replies.

About this Topic