[resolved] ALT-tag in images doesn't show in HTML output (4 posts)

  1. iwasfirst
    Posted 1 year ago #

    For some reason 4 of my images doesn't output the ALT-tag, and as consequence create validation errors when testing the HTML through W3C.

    It seems to be all the pictures I use in posts. Those ones I use in pages doesn't create errors.

    Does anyone have a clue to why this is happening?

    Best regards!
    André Giaever

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Can you replicate the problem using the default Twenty Thirteen theme with all other plugins deactivated?

  3. iwasfirst
    Posted 1 year ago #

    Hi esmi

    When I revalidated the website using the Twenty Twelve (with all plugins activated) the ALT-tags worked.

    The Theme that fails to output ALT-tags for post images is Inovado theme by Minti.

    Whether or not it's the inline post images or the thumbnails, I don't know.

    Do you have any clue as to where I should begin debugging the theme and what to look for?

  4. iwasfirst
    Posted 1 year ago #

    Hi again

    Got it working!

    I just added alt="'.get_the_title().'" inside the HTML <img> output.

    I couldn't figure out how to fetch the actual ALT-text, but W3C is now happy with 100% validation for http://www.andregiaever.com.

Topic Closed

This topic has been closed to new replies.

About this Topic