Support » Themes and Templates » Header image changed, but code overrides it later

  • I went through the documentation on changing the header image with the default theme. But the image doesn’t show and is overridden by a #header image link later in the code:

    <style type=”text/css” media=”screen”>
    /* To accomodate differing install paths of WordPress, images are referred only here,
    and not in the wp-layout.css file. If you prefer to use only CSS for colors and what
    not, then go right ahead and delete the following lines, and the image files. */

    body { background: url(“/wp-content/themes/default/images/kubrickbgcolor.jpg”); }
    #page { background: url(“/wp-content/themes/default/images/kubrickbg.jpg”) repeat-y top; border: none; }
    #header { background: url(“/wp-content/themes/default/images/760t.jpg”) no-repeat bottom center; } *******MY NEW IMAGE FOR BACKGROUND HEADER*******
    #footer { background: url(“/wp-content/themes/default/images/kubrickfooter.jpg”) no-repeat bottom; border: none;}

    /* Because the template is slightly different, size-wise, with images, this needs to be set here
    If you don’t want to use the template’s images, you can also delete the following two lines. */

    #header { margin: 0 !important; margin: 0 0 0 1px; padding: 1px; height: 198px; width: 758px; }
    #headerimg { margin: 7px 9px 0; height: 192px; width: 740px; }

    /* To ease the insertion of a personal header image, I have done it in such a way,
    that you simply drop in an image called ‘personalheader.jpg’ into your /images/
    directory. Dimensions should be at least 760px x 200px. Anything above that will
    get cropped off of the image. */
    #headerimg { background: url(‘/wp-content/themes/default/images/personalheader.jpg’) no-repeat top;}


    <link rel=”EditURI” type=”application/rsd+xml” title=”RSD” href=”/xmlrpc.php?rsd” />
    <style type=’text/css’>
    <!–#header { background: url(‘/wp-content/themes/default/images/header-img.php?upper=000000&lower=000000’) no-repeat bottom center; } ******OVERRIDE OF THAT IMAGE BACK TO THE DEFAULT*******

    So I guess my question is, where is this override coming from and how do I get rid of it???



Viewing 1 replies (of 1 total)
  • nevermind, I got it…in the function.php page it seems to check against itself to see if something has changed with an if…else. statement. So I just made the option in the if…else the same for both so the new background image is done no matter what.

Viewing 1 replies (of 1 total)
  • The topic ‘Header image changed, but code overrides it later’ is closed to new replies.