character string length for the ALT tag


Registered User
4 posts

Hello !

I integrated in a site for an architect http://www.signature-archi.com/nos%20projets.html, the excellent image carousel imagelightbox https://osvaldas.info/image-lightbox-responsive- touch-friendly.
This allows you to display captions under each image using the ALT tag.

Unfortunately it seems that RSD limits this tag to 120 characters.

Would it be possible to unlock this limitation?

Thanks a lot!

Best regards.


Senior Advisor
17,803 posts

Try adding the alt tags with JQuery before the lightbox script accesses them.
$('#myimage-id > img').attr('alt', 'My cool text');
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personnel site used for testing and as an easy way to share photos.(RLM imported to RSD)
http://ericrohloff.com


Registered User
1,547 posts

Eric Rohloff wrote:
Try adding the alt tags with JQuery before the lightbox script accesses them.
$('#myimage-id > img').attr('alt', 'My cool text');


you can of course always edit the images alt tag once exported to have as many characters as you want,, but this isn't an ideal way to do it,, I have done it before and it is ok no problems, just a bit of a pain if there are a large number of images
The Sky Is A big Empty Space : But There Is No Room For Error


Registered User
4 posts

hi!

thank you for your answer.
Unfortunately it seems that RSD limits this tag to 120 characters!
I do not understand the reason for this limit.


Senior Advisor
17,803 posts

Eric Rohloff wrote:
Try adding the alt tags with JQuery before the lightbox script accesses them.
$('#myimage-id > img').attr('alt', 'My cool text');

This would happen in the browser so RSD wouldn't know anything about this.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personnel site used for testing and as an easy way to share photos.(RLM imported to RSD)
http://ericrohloff.com


Registered User
1,547 posts

Eric Rohloff wrote:
Eric Rohloff wrote:
Try adding the alt tags with JQuery before the lightbox script accesses them.
$('#myimage-id > img').attr('alt', 'My cool text');

This would happen in the browser so RSD wouldn't know anything about this.

Hi Eric
Would this work if the image is a backgound image in a modal widow?
The Sky Is A big Empty Space : But There Is No Room For Error


Senior Advisor
17,803 posts

It should. Put it above the script for the modal or any other scripts trying to access the image.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personnel site used for testing and as an easy way to share photos.(RLM imported to RSD)
http://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.