• Resolved Claus

    (@taruk)


    Hi Guido,

    could it be that VSEL doesn’t set the alt attribute for the featured image? I see this in my SEO-Analysis and inspection of html shows this too.

    <img width="1200" height="800" src="https://XXX/wp-content/uploads/XXX_1200x800_c.png" class="vsel-image vsel-image-right wp-post-image" alt="" decoding="async" style="max-width:40%;">

    How can I fix this?

    Thanks for your support.

    Kind regards, Claus

    • This topic was modified 1 year, 9 months ago by Claus.
    • This topic was modified 1 year, 9 months ago by Claus.
    • This topic was modified 1 year, 9 months ago by Claus.
    • This topic was modified 1 year, 9 months ago by Claus.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi Claus,

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

    Guido

    Thread Starter Claus

    (@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 Claus

    (@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 Claus

    (@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 1 year, 9 months ago by Claus.
    Plugin Author Guido

    (@guido07111975)

    Hi Claus,

    Understand what you mean now. Did not think about this.
    Will make changes in next version, so first alt text of the image is being used and if empty the image title

    Guido

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘VSEL alt-text for featured image’ is closed to new replies.