Support » Themes and Templates » ALT-tag in images doesn't show in HTML output

  • Resolved iwasfirst


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi


    Forum Moderator

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

    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?

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ALT-tag in images doesn't show in HTML output’ is closed to new replies.