• I’m creating a custom theme and have attached my default stylesheet using the appropriate tag like this:

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

    This works fine but I’d like to be able to attach another stylesheet and was wandering which tag I need to do this seeing as the above tag includes the full URL to style.css.

    Also I want to do the same thing with Javascript. I presume the same tag would work for this but not sure how to call it.

    Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have seen this in some themes:
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/ie-hacks.css" type="text/css" media="screen" />

    Thread Starter typo404

    (@typo404)

    I’ve used that method for my other stylesheets but I’m not convinced they’re being seen. One of them links to my sIFR stylesheet and that isn’t displaying at all. Although the output from viewsource does have the correct URL using the above line.

    Also what about Javascript? If you have a Javascript directory and want to link to that instead of “stylesheet_directory” what should you use?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Inserting Multiple Stylesheets & Javascript’ is closed to new replies.