skip to Main Content

I am building a multilingual WordPress website and I am using YoastSEO plugin.

I am missing alt and title attributes on my images, but I’m not sure if I should add them, since I’ll have at least three languages? Maybe add them in English?

Any tips?

Best regards!

2

Answers


  1. Alt tags are required for valid HTML markup. More detail at docs.webplatform.org. What you could do is use alt attributes the 16 word limit to add multiple language. e.g.

    <img src="img/cake.jpg" alt="[:en]Cake[:de]Kuchen[:]">
    

    There is also a WordPress plugin called qTranslate X which allows for dynamic multilingual text replacement at the front-end using this format.

    Otherwise your other option is to do as @David suggests above and serve up multiple versions of your site.

    Hope this helps.

    Login or Signup to reply.
  2. The title tag is outdated. You just need to add an alt in English.

    Google will translate your image’s alt tags. You can Google “سیب” and see images without “سیب” in alt but have “apple” in their alt tags.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search