WordPress.org

Ready to get started?Download WordPress

Forums

2 Seprate CSS Stylesheets? (3 posts)

  1. rahulkhosla
    Member
    Posted 1 year ago #

    2 Seprate CSS Stylesheets? How does that work?

    At the moment in my header.php file I have:
    <link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" media="screen" />

    I want to have 2 different stylesheets eg, styles.css and layout.css

    Is this possible?

    Thanks!

  2. Robin W
    Member
    Posted 1 year ago #

    Presuming you want to do this just to keep things neat and tidy for you, then why not get you style.css to import the layout.css.

    Then anything you setup in layout.css will be kept in the layout file, but used in the style file.

    so in your style.css have as your first active line after the theme name etc.

    @import url("../layout.css");

    Think that should work.

  3. rahulkhosla
    Member
    Posted 1 year ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic