WordPress.org

Support

Support » Themes and Templates » CSS problems

CSS problems

  • Hello,

    Right now I’m working on coding my own skin for wordpress and this is my first time.

    To get my normal css to show up I added this to my index.php:

    <link rel=”stylesheet” type=”text/css” href=”css.css” />

    The problem is that none of the regular css for blogging part are showing up. Should I copy all that css onto another file that wordpress uses? Which file would that be?

    I am hosting my blog tempoary at: http://www.talesforums.com/

    Any ideas what I can do to fix this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You’ve got a media="print" in there, but no stylesheet for media="screen". That’s the first thing I noticed when I looked at the source

    Scratch that … noticed you put it inline in the blog.

    I could take the <link rel=”stylesheet” type=”text/css” href=”css.css” /> code out if I know where to put my css. How would I do that?

    Try using this:
    <style type="text/css" media="screen" >
    @import url( <?php bloginfo('url'); ?>/css.css );
    </style>

    Also, I’m not so sure that it’s a good idea to name your stylesheet css.css. It’s not “illegal” but anytime you use a file name that is the same as the file extension, you’re asking for trouble.

    Oh, I didn’t know there was anything wrong with that. I changed it to styles.css.

    I used the coded that you posted and changed the css.css, but its still not working for some reason.

    You should remove this:
    <style type="text/css" media="screen" >
    @import url( <?php bloginfo("url"); ?>/wp-layout.css);
    </style>

    because you now have two <style> declarations.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘CSS problems’ is closed to new replies.
Skip to toolbar