WordPress.org

Ready to get started?Download WordPress

Forums

Adding Widget Sidebar to All Pages (15 posts)

  1. racerman28
    Member
    Posted 8 years ago #

    I've looked around the forums here and cannot find my answer so I apologize in advance if ti's already in here...

    QUESTION: I'm trying to add my sidebar to all of my WordPress pages but it's a Widget sidebar. I tried adding the 'add sidebar' command to the 'single.php' template but it appears at the bottom of the page...not to the side like it does on the hompage.

    Any ideas?

    Thanks in advance!

  2. racerman28
    Member
    Posted 8 years ago #

    Bump

  3. bran8464
    Member
    Posted 8 years ago #

    I'm grappling with this one too, using the Kubrick theme. There may be an answer for you on this thread:

    http://wordpress.org/support/topic/25616?replies=75

  4. yosemite
    Member
    Posted 8 years ago #

    racer: For theme/style issues, post a link to your site.

  5. racerman28
    Member
    Posted 8 years ago #

    bran,

    I tried the All Sidebar theme but it screws up the Sidebar Widget.

    Yosemite,

    Here is my site:

    http://www.autoracingsport.com

  6. racerman28
    Member
    Posted 8 years ago #

    Any takers? :)

  7. moshu
    Member
    Posted 8 years ago #

    Nope. You either use the original K. (= no sidebar on single post view) or you use the All-Sidebar edition.
    If you want widgets with it, make them work:
    http://wordpress.org/development/2006/03/widgets-plugin/
    (the links for guides)

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    racerman28: I'm not seeing what you're talking about. All your pages look fine in Firefox.

    However, your site is seriously broken in IE. Might want to run it through a validator and correct whatever's wrong with it.

  9. Dgold
    Member
    Posted 8 years ago #

    The question from the original post is easy. You don't need the All Sidebar theme to have all-sidebars in Kubrick, that is a common myth.

    You already added the get_sidebar command at the bottom of Single.php

    All you need to do now is change the line near the top of the Single.php that says "widecolumn" to "narrowcolumn".

    Once you've done that, if the sidebar still bumps to the bottom it is because you have some content that is too wide in the page, like a picture over 450-wide.

    Hope this helps!

  10. racerman28
    Member
    Posted 8 years ago #

    Dgold,

    Thanks! Works perfect now. I appreciate your help!

    Otto42, thanks for the heads up on that...gotts fix that!

    K

  11. Dgold
    Member
    Posted 8 years ago #

    racerman, glad to hear that works for you, just 2 steps to modify the default theme for all-sidebar! (Note that some pages like Search Results might still not show the sidebar... you can make them do it in the same way).

  12. moshu
    Member
    Posted 8 years ago #

    And when you think you are done then you'll discover you'll have to edit the conditionals in the header.php because there is a different bg image for single and other files: there is no grey sidebar bg in single :)

  13. Dgold
    Member
    Posted 8 years ago #

    I haven't had to edit the conditionals in the header.php in the 2 default-theme blogs I've switched to all-or-mostly sidebar. Changing "widecolumn" to "narrowcolumn" has that effect of changing the background image to show the sidebar grey stripe, at least in my experience.

  14. racerman28
    Member
    Posted 8 years ago #

    Thanks all. :)

    NOW...as Otto informed me my site is broken in IE and I have NO idea how to fix it.

    I have run it through a validator but I cannot find where to fix the errors. (I'm still new to WP and PHP).

    I don't think it's a big job to fix but i would be willing to pay someone to help me fix this.

    Thanks.

    Kenneth

  15. moshu
    Member
    Posted 8 years ago #

    You can probably do it yourself.
    On the validator page check the Show Source button and click Revalidate.
    Every error line number will become a clickable link taking you to the exact place where the error is in your code and/or post. Try it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags