Forums

My new theme is broken. (12 posts)

  1. theshep
    Member
    Posted 5 years ago #

    I'm using standard tables to get the images to show up as a background to the site. However, when I go to use the theme, NONE of the css works. All the graphics are gone, and it looks like I may as well be using 1.0 browsers to view it as all formatting is gone.

    Not quite sure what happened here, but any assistance would be fine.

    http://shepriffic.com/narf

  2. faustina
    Member
    Posted 5 years ago #

    I'm not sure if I know enough to help but, did you assign a table class in css to format/stylize the tables? The problem may lie there.

  3. KatGirl
    Member
    Posted 5 years ago #

    You're missing your DOCTYPE, amongst other things.

    Check your index.php to see if you've declared <?php get_header(); ?>

  4. theshep
    Member
    Posted 5 years ago #

    I thought I could reference the stylesheet directly from index.php. I have header tags inside there. I'm guessing that all header tags should be in the header.php. I'm also going to find out what significance doctype does.

  5. doodlebee
    Member
    Posted 5 years ago #

    The header is there - he's just calling in his images and stylesheet wrong.

    Your stylesheet link needs to look like this:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    and all images need to look like this:

    <img src="<?php echo get_bloginfo('template_directory'); ?>/images/IMAGE_NAME_HERE" />

  6. vkaryl
    Member
    Posted 5 years ago #

    Jeez. Well, if you don't HAVE a doctype, every browser in the world goes into quirks mode, chokes, and dies.

    And I'm not even going to address tables for layout as opposed to tables for tabular data.

  7. theshep
    Member
    Posted 5 years ago #

    I thank you all for your assistance, it is much appreciated :)

  8. theshep
    Member
    Posted 5 years ago #

    Oh and especially a thanks for the tip on PHPing the image links, my page doesnt break :) Now for getting all the text in proper colors, etc.

  9. KatGirl
    Member
    Posted 5 years ago #

    The header is there - he's just calling in his images and stylesheet wrong.

    When I looked under source view on his home page, there was NO DOCTYPE declared. His first HTML was:

    <html>
    <head>
    With no reference whatsever to any links or stylesheets. So I suppose he must have put the header elements in :)

    Looking again, now, there is no declaration for <body> nor is there closing elements for [/html] & [/head]

  10. spencerp
    Member
    Posted 5 years ago #

    I'm seeing the same as KatGirl.. ;)

    10 validation errors.

    spencerp

  11. doodlebee
    Member
    Posted 5 years ago #

    When I looked under source view on his home page, there was NO DOCTYPE declared. His first HTML was:

    Oh, I agree - there wasn't a doctype declaration or anything like that, I know. But he *did* have headers there. I didn't say they were the right ones, though. ;)

    >>With no reference whatsever to any links or stylesheets.<<

    He must have put something in between your visit and mine, because I *did* see stylesheet links and scripts and stuff like that. But again, not the right ones. :)

    But yeah, this stuff is the least of his problems - 10 validation errors? That's all? Really? I was expecting TONS more than that!

  12. spencerp
    Member
    Posted 5 years ago #

    But yeah, this stuff is the least of his problems - 10 validation errors? That's all? Really? I was expecting TONS more than that!

    Hahaha.. So was I, apparently..that's ALL though, lol! =P

    spencerp

Topic Closed

This topic has been closed to new replies.

About this Topic