• 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? http://www.michaeldoig.net
    Thanks,

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.

    Thread Starter med103

    (@med103)

    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.
    Thanks,

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

    <img src= url("http://michaeldoig.net/wp-content/themes/doig/images/logo.png")></a>

    This is what I see in your source:
    <img src=url("http://michaeldoig.net/wp-content/themes/doig/images/logo.png")></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?

    Thread Starter med103

    (@med103)

    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.