• I have inherited a website after the “developer” migrated to our current host. It appears that all content has made it with the exception of the header image. Upon inspection, the site is looking for “domainname.ie/images/logo.png”
    I did not see the image is the media section of the website – nor did I find the correct file in any of the uploads folders. So I created a new image – uploaded it to the media area – but still don’t see it.
    I am sure I am missing a simple step – but not sure how to proceed.

    URL is http://ronniecostley.ie

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey,

    This image coming from header.php so open the file and update the logo image url which you uploaded in media library and upload the updated header.php to check if logo showing it or not?

    Thread Starter WLCullinane

    (@wlcullinane)

    Thanks for the reply Rajan,

    I have had the entire site migrated to a new host – not a new domain. So I figured naively that if I added the image that header.php was looking for with the same name and same size that all would be ok.

    My code in header.php is as follows;

    <?php $logo = $data['logo']; ?>
    
    				<a href="<?php echo home_url(); ?>"><img src="<?php if ($logo != '') {?><?php echo $logo; ?><?php } else {?><?php get_template_directory_uri(); ?>/images/logo.png<?php }?>" alt="<?php bloginfo('name'); ?> - <?php bloginfo('description') ?>" /></a>

    So I was thinking that this was pointing to the content directory of wp?

    Hey,

    It is not pointing to wp-content/uploads directory, it should point to theme directory but i see it is not getting value if it worked then this images would have displayed: http://ronniecostley.ie/wp-content/themes/rockPalace/images/logo.png

    Anyway try using this code:

    <?php $logo = $data['logo']; ?>
    
    				<a href="<?php echo home_url(); ?>"><img src="<?php if ($logo != '') {?><?php echo $logo; ?><?php } else {?><?php get_stylesheet_directory_uri(); ?>/images/logo.png<?php }?>" alt="<?php bloginfo('name'); ?> - <?php bloginfo('description') ?>" /></a>
    Thread Starter WLCullinane

    (@wlcullinane)

    ok cool – will give it a go – this goes in the header.php correct?

    thanks for the help.

    yes

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘One image missing after host migration’ is closed to new replies.