WordPress.org

Ready to get started?Download WordPress

Forums

WP 2.5 RC1.1 03-26-2008 Ignoring Header Style in CSS (3 posts)

  1. Nalco
    Member
    Posted 6 years ago #

    I have a weird problem. I have my header parameters set in my stylesheet, but as far as I can tell WP is ignoring the CSS, and inserting its own code. In my CSS, I have the following:

    #header {
    	padding: 0px 0px 5px 0px;
    	width: 750px;
    	height: 200px;
    	background: #000000 url(images/header.jpg) 0 0 no-repeat;
    	}

    But for some reason, my header has a white (#FFFFFF) background.

    I inspected the code in Firebug, and noticed that my code in CSS is crossed out, and the style is instead being read from:

    WordPress line 18.

    If I view source of my index, I notice the following code inserted in the header:

    <style type="text/css">
    #header {
    	background: #FFFFFF url(http://localhost/wordpress/wp-content/themes/mine_2.3/images/header.jpg) 0 0 no-repeat;
        height: 200px;
    	width: 750px;
    }
    
    </style>

    I have not inserted this code into the header. I have searched my CSS, and there isnt anything with a white background anywhere. I am also positive that I am editing the correct files. I have a feeling that has something to do with the "Custom Header Image" option in the admin panel, though I have no idea how to turn it off, or alter the background.

    This is copied from Firebug. My CSS is clearly ignored, and it appears WordPress is doing the styling:

    #header {wordpress (line 18)
    background:#FFFFFF url(http://localhost/wordpress/wp-content/themes/mine_2.3/images/header.jpg) no-repeat scroll 0pt;
    height:200px;
    width:750px;
    }

    This is crossed out in Firebug:

    #header {style.css (line 84)
    background:#000000 url(images/header.jpg) no-repeat scroll 0pt;
    height:200px;
    padding:0px 0px 5px;
    width:750px;
    }

    Any ideas?

  2. Nalco
    Member
    Posted 6 years ago #

    Just upgraded to 2.5 RC2, and still have the same problem. Anyone know what file this injected code is located in??

    Thanks!

  3. Nalco
    Member
    Posted 6 years ago #

    We need a way to turn off the "Custom Header" option in the admin panel. The entire header is hijacked. I did some experimenting and tried to name my header.jpg to banner.jpg in my stylesheet. The result was a big blank of white space.

    The admin panel requires that you configure the header there, which results in loss of control. I am stuck with a header BG color I don't want, and cant figure out how to change.

    Thanks!!

Topic Closed

This topic has been closed to new replies.

About this Topic