WordPress.org

Ready to get started?Download WordPress

Forums

Add Sidebar to Display per Page in a Custom Theme (13 posts)

  1. jamesscaggs
    Member
    Posted 3 years ago #

    I am trying to add sidebars to a custom theme so that we can show specific ads on specific pages only.

    The theme comes with 5 sidebars already installed including left col, right col, home left col, home right col, one col, and footer.

    I've already tried using Widget Logics plugin to assign the page id by sidebar but that does not help me b/c i need more sidebars created.

    I managed to get the additional sidebars to appear in the admin Widgets section but I when I assign widgets to those pages they still don't display on the pages.

    Please help!

  2. Purab Kharat
    Member
    Posted 3 years ago #

    which theme you are using. through coding that easily possible.

  3. jamesscaggs
    Member
    Posted 3 years ago #

    I am using a theme called TheSource by ElegantThemes.com

    The dev site is here: http://spurradio.net/

    I want to create a sidebar for each of the following pages so we can assign specific ads to specific pages.

    Spur Radio Live
    Talkin w Tana Show
    Womens Ranch Rodeo Association
    etc.

  4. marquex
    Member
    Posted 3 years ago #

    Give a try to the custom sidebars plugin

    http://wordpress.org/extend/plugins/custom-sidebars/

    without coding you will be able to create and assign new sidebars to your posts and pages.

  5. Brian Layman
    Member
    Posted 3 years ago #

  6. Fan_Buss2011
    Member
    Posted 2 years ago #

    Hi Brian,

    I am trying to use your plugin per-page-sidebars to display different sidebar per page, I am using twenty ten theme. I followed exact instructions, Activated Customer Sidebar to replace the primary widget area, and then created Customer sidebar for the specific page, everything seems fine. When I finally view that particular page, it does not diaplay the customer sidebar I created, it still displays the old sidebar.

    Please advise, what did I miss? Is this plugin still working?

    Thanks

  7. Fan_Buss2011
    Member
    Posted 2 years ago #

    Hi Marquex

    I just installed Custom Sidebar plugin today, I am using twenty ten theme. It works for all pages except the post page, same issue with per-page-sidebar plugin.

    Is this a known issue. Please advise how to fix it.

    Thanks

  8. marquex
    Member
    Posted 2 years ago #

    Hi Fan_Buss, if you are not getting the sidebar in a single post, you can define it in the new post or edit post screen.

    If you are not getting it in your blog page, have a look at the default sidebars inside the custom sidebars options.

  9. groovysoul
    Member
    Posted 2 years ago #

    marquex, I built a theme based on MNML 1.3 by Ian Stewart, and I can't seem to get the custom sidebars plugin to work with it. It won't replace the main sidebar. And when it's activated, it actually removes all the widgets from that sidebar. I've tried it with other themes applied to a test blog and love how the plug in works, but I can't seem to get it to work for my theme or MNML. Can you help? My site is jasonluckett.com.

    Thanks!

    Jason

  10. Brian Layman
    Member
    Posted 2 years ago #

    When you create a new page, there will be box below it asking which sidebar to replace.

    Click the check box beside the sidebar you want to replace.

    save the post.

    Then on the widgets page, you will see a new sidebar with the name of that page. Drag the widgets that you desire onto there.

  11. groovysoul
    Member
    Posted 2 years ago #

    Thanks for the quick reply, Brian. But I'm still not able to get it to work with my theme. Here is the code for what I think are the relevant parts:

    [CSS moderated as per the Forum Rules. Please just post a link to your site.]

    And for the sidebar.php:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Can you see anything that might be missing in the theme that would cause the custom sidebars not to function?

    Thanks for any help.

  12. Brian Layman
    Member
    Posted 2 years ago #

    No it's all pretty standard.

    Did you see the new sidebar on the widgets page? It would start with the word "Custom" and did you put at least widgets on it?

  13. groovysoul
    Member
    Posted 2 years ago #

    Thanks, Brian!

    Your plugin does the trick! Though I confess, I was actually using the other plugin when I asked the question.

    Is there anyway to streamline the process to add the same sidebar to many pages/posts/categories? Maybe in Quick Edit or something like that? I know it's called "page per sidebar," so maybe the answer is "no." :) But I've got a lot of pages and would like to have the same sidebar on different groups.

    I really appreciate your work and replies.

    Cheers,

    Jason

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.