Support » Fixing WordPress » Header Logo Not Appearing In Firefox

  • I’m using this string of code to insert a logo into my header. <img src= url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/logo.gif”)> In Safari all is well, but in Firefox the image isn’t present. Any thoughts?

Viewing 5 replies - 1 through 5 (of 5 total)
  • It shouldn’t be written like that.

    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.gif" />

    You might also want to add an alt attribute.

    I copied and pasted your code and added an alt tag so it now looks like <img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/logo.gif” alt=”logo”/>, but I’m still getting nothing in Firefox, it still works in Safari.

    In FireFox this is what the source of the page is showing

    <img src= url("")></a>

    This is what I see in your source:
    <img src=url("")></a>

    This is wrong and FF doesn’t like it.

    Can you just echo out the <?php bloginfo('stylesheet_directory'); ?> for me and see what it returns as?

    Thanks for all the help, I am developing my theme locally and updating as needed. My local site was still acting funny, but after uploading to my live site with your first change it works in Firefox now. Thanks so much & Merry Christmas!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Header Logo Not Appearing In Firefox’ is closed to new replies.