Take the 2-minute tour ×
<div id="logo">
<?php if($jw_logo_textual == 'on'){ ?>

I want to change a picture in a header.php (banner) when I change '/images/logo.png' to the url I want, it doesn't show up. While I'm sure the url is correct. can anyone help?

 <?php }else{ ?>
 <?php if($jw_logo_image != ''){ $logo_img = $jw_logo_image; }
     else{ $logo_img = get_template_directory_uri().'/images/logo.png'; }
    <img src="<?php echo $logo_img; ?>" alt="" />
 <?php } ?>

</div><!-- #logo -->
share|improve this question
What's the actual URL of img you get? You can see it in the page's source (Ctrl-U in Firefox, for example). –  raina77ow Aug 29 '12 at 11:53
What exactly is the url you want, and what do you write when using it ? –  BlueMagma Aug 29 '12 at 11:57
I change /images/logo.png with i47.tinypic.com/xx.png –  user1548544 Aug 29 '12 at 11:58
you can change the logo in der wordpress admin panel directly. no need to fiddle with the php instead. –  Jan Prieser Aug 29 '12 at 12:01

1 Answer 1

up vote 3 down vote accepted

In order to have an internet url, you need to remove


Its only necessary when you have a local adress

share|improve this answer
Thaaanks, I don't know anything 'bout php. Lifesaver & Hero! –  user1548544 Aug 29 '12 at 12:42

Your Answer


