WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar in the wrong place! (8 posts)

  1. Fadinge
    Member
    Posted 8 years ago #

    Here is my site http://love-censored.net/wordpress

    As you can see my sidebar is below my blog, but it should be at the side!

    I created my own theme and everything looked great but I came on the next day and it looked like it does now!

    Anyone know what is wrong?

  2. moshu
    Member
    Posted 8 years ago #

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

    Yeah, your code has some fairly unusual validation issues which you might want to look into. Most of them are probably just errors in your theme.

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.love-censored.net%2Fwordpress%2F

    Edit: Dangit moshu! :)

  4. Fadinge
    Member
    Posted 8 years ago #

    The page is not loading for me =(

    Is there anything else I could do or would you be able to look at it if you are able to load that page?

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

    Fadinge: Keep trying, the validator can be slow sometimes.

    Basically, it analyses your page and tells you where the problems are with it. You'll have to go look at your theme (and maybe other places too) to find and correct these problems, but most layout issues can be fixed by making your website validate.

  6. Fadinge
    Member
    Posted 8 years ago #

    I have tried but I have just accumulated more errors!

    Would anyone be kind enough to help me with the errors on a more personal level though aim or msn?

  7. mjwood
    Member
    Posted 8 years ago #

    I'll try to get you started --

    To start with, I see no <body> tag in your HTML. I'm assuming that it should be in place of the <headlayout> tag which isn't a valid tag. For some reason, you do have a </body> tag

    From there, you may want to look at the errors.

    Error #2 says that you can't have an <h2>...</h2> block inside of a <p>...</p> block.

    Error #3: Extra </a> tag. Remove it.

    Error #4: You are trying to define a <p> block inside of a list but outside of a list item. Need a <li> block around the <p>...</p>. Actually, really don't need the <p>...</p> block at all since you are defining a list item.

    The real trick is finding out why you are getting these errors. Most likely, these are in your .php files. I'm uncertian how you layed out your theme, but I would bet the majority of them are in the index.php file.

    Also, the main reason your sidebar is not where it's supposed to be. Your HTML is very cluttered and with all the errors, it's very hard to tell, but it seems that your call to get_sidebar() is inside of the <div id="content"> which places it right in the content block.

    Good luck. You really have to fix the HTML before you'll be able to clearly see what's wrong with the sidebar.

  8. Fadinge
    Member
    Posted 8 years ago #

    Thanx!

    Your main reason was correct!

    The "get sidebar" was in the footer therefore it wouldn't work lmao!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.