• I have successfully started using a child theme and now I am trying to add a logo image that will be the first entry on the page.
    So I edit the header.php (placed in my child theme map) and enter this html line directly after the tag <header>

    <header id="branding" role="banner">
                <img src="Pics/nvlogo.gif" alt="My alt text" width="132" height="84" />
    			<hgroup>
    
    				<h1 id="site-title"><span>
                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
    			</hgroup>


    …and so on.

    The result is that the alt text is displayed and when looking at the code in Firebug I get an error message “Failed to load given url”.

    I have verified that the image is available in the directory “Pics” in my child theme directory.

    I am running the site locally on a wamp server.

    If I give the complete root url “file:///C|/wamp/www/wp-content/themes/nordvisa_theme/Pics/nvlogo.gif” I still don’t see the image on the page but I see it instead of the load error message when I hover the code in Firebug.

    I have been wrapping my head around this for a couple of hours and now I have run out of ideas to try.
    I would really appreciate some advice.
    /chris

  • The topic ‘Image not showing in child theme header’ is closed to new replies.