• https://www.directedi.com

    The home page has a div called wrapper_sub, and it’s populating the background image that shows up in the header. I need to replace this on _every_ page with a new one.

    I have been able to edit header.php in a child theme to remove the php call to a custom field for the header image, I’ve just replaced it with a hard URL to my new image, no php.

    So far so good, it works on everything BUT the home page. (Can’t show you the child theme yet.)

    However, Firebug reveals that the home page is still computing to the unique header that ends in_sps02.jpg.

    The styles.css file is actually hard coded .home .wrapper to another image, but it’s getting over-ridden somewhere in the html. I do not understand Firebug well enough to get it to tell me exactly where that over-ride is happening. I cannot find it by searching the whole theme folder for “home” or “sps02.jpg” to save my life. I can’t find it in the .php files or the .css files.

    Would LOVE ideas an would make a donation to the charity of your choice for an answer!

    Carol

Viewing 5 replies - 1 through 5 (of 5 total)
  • That image is written into an inline style– ‘style=”…”‘– so you probably want to look in header.php, or near the top of the home page’s template.

    Do you have a menu at wp-admin->Appearance->Header?

    Thread Starter flypig

    (@flypig)

    I have downloaded and edited Header.php for the dynamic call but I do not see any other mention of editor or home page there.

    My child theme is functioning in other ways on the home page, in that it’s putting in a new div for a new static menu, but the image I’ve put in that very same header doesn’t show, it’s being overridden.

    I think I’ve seen what you’ve seen, a computed style of simply
    element.style
    which I assume you are saying means inline style. So I’ve searched by the image name, get_header, background, header, home and other search terms.

    There is even a homepage template, page_home.php, and it just says get_header();

    I am assuming since this is all server side, Firebug cannot see the source files. And only BBedit search doesn’t see anything in them either.

    Thanks for you ideas.

    seems to be coming from the content of the post – after the bottom link:

    extract of the html of the front page in teh browser:

    <p>To learn more, and view a webinar about the acquisition, <a href="https://www.spscommerce.com/direct-edi-acquisition.html">click here</a>.</p>
    <p>SPS Commerce privacy notice <a href="https://www.spscommerce.com/contact/privacy-statement.html">click here</a>. </p>
    <p>    <script language="javascript" type="text/javascript">
                document.getElementById("headerBGimg").style.backgroundImage = "url(/wp-content/uploads/2011/05/bgr_wrapper_home_sps02.jpg)";
                document.getElementById("headerBGimg").style.backgroundRepeat = "no-repeat";
       </script></p>
    Thread Starter flypig

    (@flypig)

    Ah, you are correct! I never would have thought to look there and of course that means it’s not in any of the FTP files.

    Thanks Alchymyth! What’s your favorite charity?

    Carol

    you are welcome

    – any help here in the forum is as always absolutely free ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Find the hard coded bg image here!!!’ is closed to new replies.