Skip Navigation

[Resolved] Dynamic alt text on the standard image block

This support ticket is created 3 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 6 replies, has 2 voices.

Last updated by Arno 3 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#2268563

I am using the standard WordPress image block within a Toolset View Loop. I want to set the alternative text of the image to the alternative text as entered in the media library. If I don't configure the alternative text, the alt attribute is rendered empty. If I select the alternative text to pull from a dynamic source, it does not list the option I need. I can set it to use the image URL as the alt text, for example, but that does not make sense 🙂

Is there any documentation that you are following? Yes: https://toolset.com/lesson-placement/lesson-placements-1647613-1621091/

Here's my page: hidden link

#2268587

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2022-01-17 at 12.16.38 PM.png

Hi Arno,

Thank you for getting in touch.

From my testing locally with the default wordpress image block, you do have the options to use standard wordpress fields as well as custom fields for the alternative text. See Screenshot

Is there a particular field that you're not seeing that you want to use ?

Please let me know.
Thanks,
Shane

#2269047
img-block.jpg

Hi Shane,

Yes indeed, but I cannot find the option to assign the actual alt text of the image to the alt text of the image block (that's more or less the default one would want there I guess). Please see my attached screenshot: I can select the URL but not the alt text. I'd expect "Featured image alt text" to be listed there as well. Not setting anything results in an empty alt attribute. Am I missing something?

Arno

#2269583

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Arno,

Unfortunately the image attributes aren't available as dynamic sources to be used as ALT text. A workaround to this is that you can create a custom field to hold your image ALT text and then assign this as the dynamic source for the image.

Thanks,
Shane

#2269633

Hi Shane,

Thanks for clearing that up. The work around will work but it's doubling the work of editors so for now I'll probably leave the alt rendered empty. Do you expect the alt to become available as a dynamic source in the future? Is this a WordPress limitation or could the Toolset team implement this if they wanted to?

Kind regards,
Arno

#2269639

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Arno,

I believe this is a limitation of wordpress. However what you can do is to submit a feature request so that our developers can review to see if this is something that can be added.

To open a feature request you will need to go to the link below.
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

From there you will need to provide as much detail about the feature as possible.

Once you've submitted the feature request it will be reviewed by our team and assigned a priority based on user requests for said feature.

It should be noted as well that this can take a bit of time to go through the entire process.

You can go ahead and close this ticket once you've submitted the feature request.

Thanks,
Shane

#2269661

Will do. Thank you!