VSEL alt-text for featured image

[ad_1]

Plugin Author
Guido

(@guido07111975)

Hi Claus,

It should be the image title. Did you inspect the shortcode generated event list?

Guido

Thread Starter
Taruk

(@taruk)

Hi Guido,

yes, the shortcode is simply [vsel]. Do I have to set the image title tag for getting the alt-attribute?

Thread Starter
Taruk

(@taruk)

Indeed, I tested it. Setting the title tag returns the alt-text. Is this intended?

Plugin Author
Guido

(@guido07111975)

If you look at the code of file vsel-page-template you will notice that the image title is being used for the alt tag of the featured image.

Guido

Plugin Author
Guido

(@guido07111975)

Setting the title tag returns the alt-text. Is this intended?

I don’t understand this. When uploading an image it gets a title in the media library. Or am I wrong?

Guido

Thread Starter
Taruk

(@taruk)

When uploading an image it gets a title in the media library. 

Yes, that’s right. In this case I deleted the title in the media library. But the title should be indicated in html as title=”xxx”.

For user experience and SEO the alt-text is much more important to have. It should be indicated in html as alt=”xxx”.

For me the workaround setting the alt-text in title-tag works for now.

Thank you and kind regards,

Claus

  • This reply was modified 3 minutes ago by Taruk.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer