Add "alt" text for the image.

stbcoding's Avatar


16 Feb, 2021 12:23 PM

This code:
    <a class="rsImg" data-rsbigimg="/royal/templates/img/paintings/1.jpg" href="/royal/templates/img/paintings/700x500/1.jpg"><img width="96" height="72" alt="test alt tag" class="rsTmb" src="/royal/templates/img/paintings/t/1.jpg"></a>

Converts into this.
<img class="rsImg rsMainSlideImage" src="/royal/templates/img/paintings/700x500/1.jpg" style="width: 300px; height: 300px; margin-left: 278px; margin-top: 81px;">

Please help me tweak the javascript so the main image will have the proper ALT tag. This is for SEO purposes.
I want to have a place to add te

  1. 1 Posted by stbcoding on 16 Feb, 2021 05:05 PM

    stbcoding's Avatar

    I want to have a place to add the ALT tag for the image.

  2. Support Staff 2 Posted by Dmytro Semenov on 17 Feb, 2021 05:48 AM

    Dmytro Semenov's Avatar


    The markup of lazy-loaded image cannot be modified by default, but since it's created dynamically via JS you may add any attribute, for example to add alt based on caption -

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac