WordPress.org

Ready to get started?Download WordPress

Forums

Where does WP pull CSS from? (3 posts)

  1. bpittam
    Member
    Posted 6 years ago #

    I have searched all the files (in my current theme) to find a hard coded path for the css files, but could only find.

    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />

    Is there a way that I can pull a different CSS file? What I want to do is change the color theme any time I change my main image. I know this is probably just as easy as to go into my style.css and change the colors but if I want to revert back to a different color then I have to change all the codes.

    For example, my main website is calling the css file "khaki_red.css" How do I have WP call the same file?

    If you need more details let me know - Thanks

  2. whooami
    Member
    Posted 6 years ago #

    you found what you needed to change.

    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />

    Thats what you change.. just change that line as necessary.

    <link rel="stylesheet" type="text/css" href="mystyle.css" />

  3. bpittam
    Member
    Posted 6 years ago #

    Thank you for the quick reply. I guess I got confused and freaked out when I saw the

    href="<?php bloginfo('stylesheet_url')

    And thought I had to keep that. I'm just a newbie when it comes to CSS. Thanks again

Topic Closed

This topic has been closed to new replies.

About this Topic