WordPress.org

Forums

Header Logo Not Appearing In Firefox (6 posts)

  1. med103
    Member
    Posted 10 years ago #

    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,

  2. mattman
    Member
    Posted 10 years ago #

    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.

  3. med103
    Member
    Posted 10 years ago #

    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,

  4. skulled
    Member
    Posted 10 years ago #

    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>

  5. mattman
    Member
    Posted 10 years ago #

    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?

  6. med103
    Member
    Posted 10 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags