Support » Alpha/Beta/RC » WP 2.5 RC1.1 03-26-2008 Ignoring Header Style in CSS

  • nalco

    (@nalco)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nalco

    (@nalco)

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

    Thanks!

    Thread Starter nalco

    (@nalco)

    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!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP 2.5 RC1.1 03-26-2008 Ignoring Header Style in CSS’ is closed to new replies.