WordPress.org

Ready to get started?Download WordPress

Forums

Multiple style sheets in a theme? (6 posts)

  1. lia_leaves
    Member
    Posted 2 years ago #

    Hi -

    I have a special style sheet for the footer because it needs different color links. However, my main style sheet seems to override the second style sheet, or the second style sheet isn't being applied.

    this is what I have in all pages:
    <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_directory_uri(); ?>/style.css" />

    on my footer page I have:
    <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_directory_uri(); ?>/style_footer.css" />

    Is this possible? Any thoughts or suggestions would be appreciated!

  2. rochee_jd
    Member
    Posted 2 years ago #

    Instead of the code you gave, try something like this:

    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style_footer.css">

    Hope this helps.. :)

  3. lia_leaves
    Member
    Posted 2 years ago #

    That looks good - I'll give it a try - thanks!

  4. rochee_jd
    Member
    Posted 2 years ago #

    Great, let us know if this worked. :)

  5. lia_leaves
    Member
    Posted 2 years ago #

    that worked - thanks!

  6. rochee_jd
    Member
    Posted 2 years ago #

    Great! could you please mark this topic as resolved? Thanks.. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.