• i wish to use more than one stylesheet for the theme i am making.

    i have the following stylesheets
    style.css
    images.css
    colours.css
    IE.css

    but this following piece of code only picks up one style sheet.. the style.css file.

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

    how do i change it to add the other stylesheets?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter riotriotstar

    (@riotriotstar)

    ah crap..

    sorry. wrong section. i noticed too late after i clicked “send”

    You could put the following in your style.css:
    @import "style1.css";
    @import "style2.css";

    Or combine all of the styles into your style.css, which is what I did.

    You can also just insert additional link tags for each:

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

    And so on.

    tried that last suggestions individually but the images in the images.css don’t show up

    How do you reference the image in images.css? Is other styling in images.css applied to the page? In other words, does everything else work except the images won’t show up?

    Do you have a link for this site, with the modification applied?

    As has been said, put ’em all in one style sheet then comment the different sections and move on.

    Next question.

    😉

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘how do i add multiple stylesheets for a theme’ is closed to new replies.