WordPress.org

Ready to get started?Download WordPress

Forums

Adding more than one stylesheet (2 posts)

  1. patrickepeterson
    Member
    Posted 4 years ago #

    Hi there,

    I'm trying to add more than one stylesheet to a template that I'm creating. style.css works just fine, but I can't seem to load structure.css, which is where I've stored all the characteristics for the divs.

    Another topic in the forum recommends that you use <link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_template_directory_uri(); ?>/pagestyle.css" /> to load a unique stylesheet on a particular page, but that didn't work in this case, since structure.css should load on every page.

    I also tried just loading a stylehseet (link rel="stylesheet...") like you would on a static HTML page, but that also failed.

    Does anybody have any ideas?

  2. alchymyth
    Forum Moderator
    Posted 4 years ago #

    if you call
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/structure.css" type="text/css" />
    in header.php (in the head section), i don't see any reason why it shouldn't work on every page ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic