character string length for the ALT...

User 2659306 Photo


Registered User
5 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.
User 187934 Photo


Senior Advisor
18,132 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
http://ericrohloff.com/property/
User 2699991 Photo


Registered User
1,791 posts
Online Now

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 Help You Need : When You Need It The Most
website https://rsdtutorials.com

User 2659306 Photo


Registered User
5 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.
User 187934 Photo


Senior Advisor
18,132 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
http://ericrohloff.com/property/
User 2699991 Photo


Registered User
1,791 posts
Online Now

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 Help You Need : When You Need It The Most
website https://rsdtutorials.com

User 187934 Photo


Senior Advisor
18,132 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
http://ericrohloff.com/property/

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.