Forums

Alt Tag in Header of TwentyTen Not Appearing (4 posts)

  1. SarahArendt
    Member
    Posted 5 months ago #

    I added text between the alt tag double quotes in the header.php file of the TwentyTen theme but the alt text will not show up in any of my browsers. I'm completely stumped. I didn't change anything else in the code. What do I need to do to get the alt text to show up on mouseover?

    It looks like this:

    <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="Photo donated by Robert J. Hurt Landscape Photography" />

    Any ideas? Is the alt tag text too long? Thanks for any help you can provide.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 5 months ago #

    Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of assistance.

  3. SarahArendt
    Member
    Posted 5 months ago #

    Sorry! Here is the link: ddsewerdistrict.com

    Any help would be greatly appreciated!

  4. esmi
    Theme Diva & Forum Moderator
    Posted 5 months ago #

    The alt text will only be displayed in non-graphical browsers and user agents. If you want text displayed as a tooltip, use the title attribute.

Reply

You must log in to post.

About this Topic