Replacing Header Text With Header Image (5 posts)

  1. FarranLumb
    Posted 1 year ago #

    Hello all,

    I have a fairly simple problem (I think) - I have changed my header code so that I have a header image instead of text title. As far as I can tell there is nothing wrong with the code, but the image still does not appear on my site. I have pasted the code below:

    <div class="head">
    					<div class="logo">
    <h1 class="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php bloginfo('stylesheet_directory');?>/images/logo.png"/></a></h1>

    As you can see on my site the image just appears as a broken image (http://giftersguidetothegalaxy.com/).

    If someone could have a quick look it would be greatly appreciated. I am pretty sure I am just missing something small, but all feedback is appreciated.


  2. Mike Price
    WP Engine Tech Support
    Posted 1 year ago #

    Hey FarranLumb !

    So the issue doesn't appear to be with your code at all. The image appears broken because it doesn't seem to exist on the server.


    That brings you to a 404 page. Are you sure you got the image path correct?

  3. FarranLumb
    Posted 1 year ago #

    Haha you are right, I had it in http://giftersguidetothegalaxy.com/wp-content/themes/Viper-Child/Images/logo.png

    I just had the "I" capitalized for the folder name which apparently makes the difference. Thanks for the help Mike!

  4. Mike Price
    WP Engine Tech Support
    Posted 1 year ago #

    Sweet, not a problem at all! Good luck with the site, it looks cool! :)

  5. FarranLumb
    Posted 1 year ago #

    Thanks Mike. Tell your friends! Haha

Topic Closed

This topic has been closed to new replies.

About this Topic