• Resolved mzimmers

    (@mzimmers)


    …neither is another image, but I’ll ignore that one for now.

    I think I’m getting tripped up by embedded styles.

    I changed the directory structure for my uploads a bit and WP is still trying to look in the old place for images. According to Firebug, the references are coming from within my Pages. Since the source code for the Pages is so minimal, I have to assume it’s something WP is prepending/appending to my content.

    How best to fix this?

    my website

    Thanks.

Viewing 15 replies - 1 through 15 (of 16 total)
  • It’s in your header.php file just before either wp_head() or </head>:

    <style type="text/css">
    #header-image {background-image:url(https://scopedin.com/3AIS/wordpress/wp-content/uploads/2009/11/cropped-header1.jpg);}
    #header h1,#header h1 a,#header h1 small {color:#606060;}
    </style>

    https://scopedin.com/3AIS/wordpress/wp-content/uploads/2009/11/cropped-header1.jpg

    gives a 404 not found error;

    for some reason, your page is not complete:
    validation

    Could be a custom header theme option that isn’t working correctly? Or a faulty uploads path.

    Thread Starter mzimmers

    (@mzimmers)

    Hi, Esmi –

    The code you cite above isn’t in my header file. I can post the source if you like.

    I screwed this up by modifying the directory structure in which my uploaded files are kept. I really don’t want to go back to the old structure, though.

    alchymyth: that’s actually my point. I’ve changed those directories, but I don’t know where in WP to reflect those changes.

    Thread Starter mzimmers

    (@mzimmers)

    More specifically, here’s the trail:

    • in header.php, there’s a line:
      <div id="header-image"></div>
    • in color.css, there’s a line:
      background-image:url(wp-content/uploads/images/cropped-header1.jpg);
    • but this is overridden by this code:
      #header-image {
      background-image:url(https://scopedin.com/3AIS/wordpress/wp-content/uploads/2009/11/cropped-header1.jpg);
      }

      which according to Firebug, is in line 42 of https://scopedin.com/3AIS/wordpress/?page_id=36

    page 36 is my home page, and only has two or three lines of text in it. This makes me think something is happening behind the scenes.

    Thread Starter mzimmers

    (@mzimmers)

    Another data point, Esmi: the directory I changed was where I was storing images. Originally it was wp-content/uploads/2009/11/ and I changed it to wp-content/uploads/images.

    But, somewhere that original pathname (with the 2009/11) in it is being read by WP. I’m 99% certain it’s not in any of the changes I made to zenlite. I’d say 100% certain, but on top of everything else, the search utility in MacOS is acting faulty.

    Is there ANY other information I can provide? Or, let me ask this a bit differently: if I were to want to modify the location of the banner in a bone-stock Zenlite, where would I do it?

    First can I ask if you uploaded a custom header via the theme’s options recently?

    Thread Starter mzimmers

    (@mzimmers)

    I’m pretty sure the answer is “no.” I did, however, modify the header.php file (though the only modifications were commenting out the display of the bloginfo and description).

    Well something is adding that block of CSS to your header file. If it’s not a plugin and you didn’t add it manually, it’s coming from your theme. And it looks very much like a custom header image addition to me

    Thread Starter mzimmers

    (@mzimmers)

    Can you elaborate on what a custom header image addition is? Specifically, where should I be looking for it?

    In my zenlite folder I do have a file called admin-custom-header.css, but I believe this is a standard file, no? And I haven’t altered it.

    Thanks, esmi.

    Edited:

    Actually, what I really want clarification on is, what are the theme options you speak of? (I’m still on 1.2, BTW.)

    admin-custom-header.css isn’t a standard theme file. It’s only normally used when the theme has a custom header option under Appearance/Themes. And ZenLite does have a Custom Header Option. And you have created a custom header using this option in the past.

    Thread Starter mzimmers

    (@mzimmers)

    Ah, yes. OK, I’m getting there little by little. I found the custom header setting.

    Unfortunately, I’m not all the way home because, after I upload an image, the resultant pathname is malformed. Specifically:

    1. There are two “/” characters before the filename
    2. the pathname has a lot of junk in front that shouldn’t be there and is confusing the browser

    What I get is:
    https://www.scopedin.com/home/scopedin/public_html/3AIS/wordpress/wp-content/uploads//header_cropped.jpg

    And what I should get is:
    https://www.scopedin.com/3AIS/wordpress/wp-content/uploads/header_cropped.jpg

    I notice it also makes a couple of smaller files as well.

    I’m sure this is due to my tinkering with the theme code, but for the life of me, I can’t find it. When you upload a file via the custom header option, where is that information stored?

    (BTW I ruled out plugins as a cause here.)

    Thread Starter mzimmers

    (@mzimmers)

    Update: I just removed all old versions of the zenlite theme and installed and activated a fresh (stock) copy. Doing nothing to it whatsoever, I then uploaded a custom header image.

    The image path is malformed as described above.

    Can anyone tell me where this pathname is created?

    Thanks.

    Thread Starter mzimmers

    (@mzimmers)

    OK, I think I’ve discovered what was going wrong, but I wouldn’t object to some clarification.

    It appears that, no matter what directory you have specified as your “store uploads” folder in Miscellaneous…custom header will still store them (and look for them) in wp-content/uploads.

    (As an aside, the malformed pathname was in my DB. I cleared it by erasing the fields in Miscellaneous.)

    Is there any chance that WP or zenlite might have an upgrade someday that will give us a little flexibility on this? My current website is very small, and doesn’t have many uploaded files, but…I’d hate to think that I’d have to keep them all in a flat directory. I’d like to have a subdirectory for images, another for pdfs, and so on.

    If there is an issue, it’s a core issue – not a theme issue. The uploads path is picked up from your database. Given that you changed the uploads folder recently, there may be a problem with the path you have used.

    I’d hate to think that I’d have to keep them all in a flat directory.

    So sort them into year-month based folder as per the settings in Miscellaneous.

    I’d like to have a subdirectory for images, another for pdfs, and so on.

    That’s not possible within WP itself.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘header image not loading…’ is closed to new replies.