IMG Alt Tags not working in WordPress

by DJL
7 replies
  • WEB DESIGN
  • |
I have a WordPress 2.9.2 blog (self-hosted) with images in posts & pages. I added alt tags for each image, but they do not appear when I hover my mouse over the images. I am using the Vistalicious theme. Does anybody know how to fix this?
#alt #alt tags #img #tags #vistalicious #wordpress #working
  • Profile picture of the author mywebwork
    Are you sure they don't work? Reason I ask is that the ALT tag doesn't display with every browser.

    In some cases a Title tag can be used instead. See if that works for you.

    Bill
    {{ DiscussionBoard.errors[1794281].message }}
    • Profile picture of the author Bruce Hearder
      Yeah Bill (myWebWork) is right..

      Check the source code.

      Do the images tags look something like :

      <img src="someimage.jpg" alt="alt tag goes here" title="some title goes here" >

      Note.. Try not to have quotes (either single or double) in alt or title tags. They can cause or sorts of problems.

      Hope this helps

      Bruce
      {{ DiscussionBoard.errors[1794432].message }}
      • Profile picture of the author DJL
        Thanks to both who responded. I changed all my alt='whatever' to title='whatever' and now the indicated text pops up when the mouse hovers over an image.

        Apropos, has anybody ever seen a less functional, more annoying text editor than the WordPress editor? And they have the effrontery to posit the slogan "CODE IS POETRY"! If that's poetry, I'll stick to prose.
        Signature

        None are more hopelessly enslaved than those who falsely believe they are free.
        --Johann Wolfgang von Goethe, Elective Affinities (1809)

        {{ DiscussionBoard.errors[1794511].message }}
        • Profile picture of the author Bruce Hearder
          You can change the editor if you want.

          You can get the FckEditor plugin that will give you a much better HTML editor.

          But having said that, it still pretty week in comparison to some desktop editors. But it does give a lot more functionality than the default MCE editor

          Hope this helps

          Bruce
          {{ DiscussionBoard.errors[1794562].message }}
          • Profile picture of the author DJL
            Thanks, again. I will try that.
            Signature

            None are more hopelessly enslaved than those who falsely believe they are free.
            --Johann Wolfgang von Goethe, Elective Affinities (1809)

            {{ DiscussionBoard.errors[1796007].message }}
      • Profile picture of the author Karen Blundell
        Originally Posted by Bruce Hearder View Post

        <img src="someimage.jpg" alt="alt tag goes here" title="some title goes here">
        just don't forget to close your image tag because WordPress uses XHTML not HTML like so

        <img src="someimage.jpg" alt="alt tag goes here" title="some title goes here" />

        use
        /> instead of just >
        Signature
        ---------------
        {{ DiscussionBoard.errors[1797118].message }}
  • Profile picture of the author DJL
    Thanks, Karen, I'll keep that in mind.
    Signature

    None are more hopelessly enslaved than those who falsely believe they are free.
    --Johann Wolfgang von Goethe, Elective Affinities (1809)

    {{ DiscussionBoard.errors[1797815].message }}

Trending Topics