• Is there some reason that WordPress will not read any CSS that’s put into the <head> section of a page template? The only thing I can get it to read from is the “style.css” file, and that’s only when I use the WordPress PHP function to attach the style sheet. Is there any way I can fix this? Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    You’ll have to give us a link to the page so we can see what you’re talking about.

    Thread Starter kev_120

    (@kev_120)

    I’m sorry but the site is being a VPN and cannot be accessed. However, I can give you an example. In the ‘style.css’ file I have:

    #header {
    background-image:url(images/header-bg.jpg);
    background-position:bottom;
    background-repeat: no-repeat;

    }

    which renders just fine. But in a specific template page I will have:

    <head>
    <style type=”text/css”>
    #header {
    background-image:url(http://cle.dev.ehe.osu.edu/wp-content/themes/CLE 2/images/lwc-logo.png);
    }
    </style>

    </head>

    and it will not read the new image in as the background for the ‘header’ div.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Is your link tag to the style.css before or after the explicit style that you are setting in the head section? Because styles are processed in order, so whatever comes last on the page takes precedence.

    Thread Starter kev_120

    (@kev_120)

    Thanks a lot Otto! That did it! While we’re on this topic, do CSS hacks not work with WordPress?

    WordPress doesn’t do anything to the stylesheets so yes they would.

    Hi.

    I have searched various “suppport’ pages for help but I can’t seem to come across the topic I need help with: changing font-size.

    From the dashboard I click on “Design” and then theme Editor, and then click on style.css to review the codes.

    I can’t seem to change the font-size of the body text or the headers.

    Nor have I been able to change the font-size of the tagline right under the Blog Title.

    …..Maggie

    Might be a permissions issue. Are permissions set to 755? If they are not writable – changes will not take place.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘WordPress ignoring CSS?’ is closed to new replies.