Forums

[resolved] Proper way to link to the stylesheet (3 posts)

  1. exit6
    Member
    Posted 2 years ago #

    What's the correct way to link to a sylesheet? I don't see the standard <link rel="stylesheet" href="css/style.css" /> anywhere, so I'm guessing it's in some function somewhere. In the past I just used "style.css" in the theme's main directory, but for this one i'm using a few stylesheets and I'd like to keep them organized.

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

    Two options:

    1. Use <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" /> and then @import the additional stylesheets at the top of style.css after the theme data block.

    2. Use <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/filename.css" media="screen" /> to add the additional sheets individually to the header.

  3. exit6
    Member
    Posted 2 years ago #

    thanks --

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.