Forums

Sidebar interfering with post metadata (4 posts)

  1. sokcgold
    Member
    Posted 2 years ago #

    I'm having a little trouble with a basic theme that I've put together. I'm trying to figure out why the sidebar is controlling the length of the first post on the page.

    All of the post metadata is dropping to a point below the length of the sidebar, and then the rest of the posts show up. I'm really new at this, so I'm not even sure what information to give to help locate the problem.

    The site can be seen at:

    Get Fit By Fifty Blogs

  2. songdogtech
    Member
    Posted 2 years ago #

    You've got code errors, like too many body tags and missing closing </div> tags: [Invalid]Markup Validation of getfitbyfifty.com blogs - W3C Markup Validator. Scroll down in the validation report to see line numbers and source code.

  3. sokcgold
    Member
    Posted 2 years ago #

    Thanks for that! I wasn't aware of that tool. Learn something new every day.

    I've cleaned up some of the obvious errors - mostly it was cutting and pasting incorrectly. However, the page looks virtually the same.

    It appears though that there seems to be something wrong with the "role" attribute. I'm not quite sure how this is supposed to be used and why it doesn't like it. It seems to just be a way to note what an element is doing.

    The second problem is that the validator is saying I can't use img in my header and footer - but it seems to be working.

    The third is the style in the body - but that's part of Google and I don't think I'm supposed to mess with that code snippet.

    Thanks for any additional help.

  4. songdogtech
    Member
    Posted 2 years ago #

    Role attributes: are you talking about a CSS "class?" If you still have layout poblems, then it's CSS. You might an enclosing container for your content. Look at the CSS of a real basic theme, like the default wordpress theme, and see how that works. Or compare your existing code to the unedited code of the theme you've modified.

Topic Closed

This topic has been closed to new replies.

About this Topic