Forums

Doctypes & CSS help (5 posts)

  1. Jonas Grumby
    Member
    Posted 3 years ago #

    I've been noticing that some templates use doctype XHTML 1.0 Strict and others use Transitional. Which one is better for WP 2.7.1?

    Also, can anyone recommend a CSS forum? I tried joining CSS Creator but they haven't sent me an email confirmation. Webmasterworld doesn't allow you to post links and they are strict about posting code examples. Seems like if they are going to be that militant about it, it's going to be hard to accomplish anything there.

    The reason I'm asking these questions is...

    I have a client using the alternate0 theme and the single.php template does not call in the sidebar.

    If I add

    <?php get_sidebar(); ?>

    I can get it to display but not in the correct place. So far the best I've been able to do is to get it in the correct horizontal alignment but too low vertically. Seems strange because all of the other page templates simply have that code at the bottom just above the call to the footer. However, that doesn't work on the single post template.

    If anyone wants to see the site, it's at http://feefifaux.net

    This is still under development and we're experimenting with some things (like the music on the home page, which I am not a fan of). The theme is buggy but the client likes it. I posted a comment on the theme author's blog about this but it apparently was deleted and was not answered. I guess they don't want to provide any support or suggestions for this theme.

    Thanks

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    I've been noticing that some templates use doctype XHTML 1.0 Strict and others use Transitional. Which one is better for WP 2.7.1?

    Neither is "better" for WordPress but, generally speaking XHTML 1.0 Strict is the correct way to go as it does not allow for formally deprecated markup.

    http://accessites.org/site/2006/09/its-time-to-kill-off-transitional-doctypes/

    Also, can anyone recommend a CSS forum?

    Try css-discuss.

    I can get it to display but not in the correct place.

    You've got some validation problems on your single post pages. Depending upon where you're calling sidebar.php, they could impact in its final positioning.

  3. Jonas Grumby
    Member
    Posted 3 years ago #

    Wow, thanks. Right now I'm down to the last 4 errors. A little more than a dozen of them were caused by the theme. Some were caused by a plugin (I've fixed them and emailed the author), and a few were my own code. I didn't realize that image tags (i.e. img src=) could not contain border= and align= attributes. Those image tags were the only thing I did wrong, so I guess I'm not so bad.

  4. Jonas Grumby
    Member
    Posted 3 years ago #

    I've got that page validating perfectly but still can't get the sidebar into the right place. The last thing I fixed was a missing </div> tag. I assume I put it in the wrong place. Although that page validates, the other pages are showing the "Opening and ending tag mismatch" and "Premature end of data in tag" errors that I was getting on the other page before I "fixed" it. So maybe I need one less </div> tag in single.php and one more somewhere else.

    I can see that this can chew up a lot of time (which I'm not billing for). I'll have to stop doing this on the live site and do it on a test site instead. Thanks for all the help. I'm giving up for tonight.

    My advice: Don't use this theme. It's too buggy.

  5. Jonas Grumby
    Member
    Posted 3 years ago #

    Ok, I fooled around with it more and got all of the pages to validate (except the Calendar page - the plugin causes a lot of validation errors) w/o touching the single.php again. I still haven't got the sidebar into the single.php though.

    Now I'm really done with this b/c I have two other sites that I have to work on for free - a charity's site and my own :(

Topic Closed

This topic has been closed to new replies.

About this Topic