WordPress.org

Ready to get started?Download WordPress

Forums

Trouble adding sidebar to single.php (6 posts)

  1. webrob
    Member
    Posted 7 years ago #

    I have added the sidebar to the comments page but I am having trouble with the way it is displayed.

    Have a look: href="http://www.six-blue.com/?p=30

    The side bar is way down on the right. I have been tearing apart the CSS but I am only making it worse. Does anyone have any suggestions?

  2. whooami
    Member
    Posted 7 years ago #

    your front page might appear OK to you in IE7 or firefox, it's not in IE6.

    The permalink pages are hosed in FF and ie6.

    I didnt bother checking either in ie7.

    Start by fixing the structural errors that the validator picks up:

    http://validator.w3.org/check?uri=http://www.six-blue.com/index.php
    http://validator.w3.org/check?uri=http://www.six-blue.com/?p=30

  3. webrob
    Member
    Posted 7 years ago #

    I do not see what this has to do with why the sidebar is messed up on the single pages?

  4. whooami
    Member
    Posted 7 years ago #

    you dont, huh?

    1. Your permalink pages ARE your single post pages.

    2. The second link I plopped into the validator is a permalink page. Did you even look at the results, or just dismiss me outright?

    Lets see, going down the list on this page:

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.six-blue.com%2F%3Fp%3D30&charset=%28detect+automatically%29&doctype=Inline&ss=1

    How many structural errors are there in your sidebar AKA your sidebar.php:

    1. Line 82, column 10: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag .

    2. Error Line 83, column 6: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag .

    3. Error Line 119, column 6: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag .

    4. Line 122, column 22: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag .

    5. Error Line 124, column 6: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag .

    6. Line 130, column 6: end tag for "li" omitted, but OMITTAG NO was specified .

    7. Line 82, column 3: start tag was here .

    thats 7 errors ALL in your sidebar, all related to how you have the lists.

    Start at the top, fix them as you find them, and revalidate. Fixing one error above another might fix one below it.

    have a great day. and maybe next time, read and think before posting. It's a time saver for those of us that take the time to help if you can do your part.

  5. webrob
    Member
    Posted 7 years ago #

    I am sorry. I am just extremely frustrated with this one single issue. I have gone through and fixed my errors but it still floats down....I just can't get it :(

  6. moshu
    Member
    Posted 7 years ago #

    That's a kubrick clone theme - so it will never work properly by just adding a sidebar to it. You have to dig much deeper into the code than simply inserting your sidebar.
    (Hint: on views with sidebar it uses narrowcolumn and otherwise widecolumn - you will have to go through files and make the necessary changes.)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.