• Resolved exit6

    (@exit6)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter exit6

    (@exit6)

    thanks —

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Proper way to link to the stylesheet’ is closed to new replies.