Treehouse: Grow your CSS skills. Land your dream job.

[Solved] WordPress – Archive pages all out of whack

  • # January 5, 2010 at 4:11 pm

    This is only my second wordpress themeing and I am having an issue with the monthly archive pages. You can recreate the issue by going to and clicking on one of the archived months in the bottom of the sidebar. I have played around with the archive.php file in the theme, but am having issues still.

    Any help would be greatly appreciated. If you need anymore information please let me know.

    # January 5, 2010 at 4:15 pm

    Yea… one of your archive pages is not playing nice with your header, footer etc.

    What I would do is back up and delete your archive templates (date.php and archive.php) and create new ones based off your working index.php template. More information about the which files count as your archive templates here:

    # January 5, 2010 at 4:28 pm

    Thanks for the link that helped explain some stuff. I went ahead and deleted archive.php (after I backed it up) so it is now pulling the index.php file which is fine for layout purposes, but still has that out of whack look. I have gone over other pages to make sure all my closing tags are in the right place and they are, but still all messed up.

    # January 5, 2010 at 4:40 pm

    Got it figured out. A class was applied to <body> automatically so I just had to enter some css and I was good to go. Thanks for your help.

    # January 5, 2010 at 4:43 pm

    I see.

    It looks like your <body> tag has the automatic WordPress classes applied to it. The body CSS works fine, but the other archive classes dont. Instead of being class specific, try removing the classes from the body element.

    I would also recommend Validating your HTML and CSS … %2Fblog%2F … %2Fblog%2F

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.