.custom-alt-text
) inside each list item.</body>
that loops through each image, retrieves its alt
attribute, and displays it in the adjacent div.Webflow’s Multi Image Field allows CMS collection images to be displayed dynamically, but it doesn’t directly expose the alt tag in the Designer. To display the alt text next to each image with a custom embed, you’ll need a mix of Webflow CMS binding and custom JavaScript.
Here’s how to do it:
alt
attribute from each rendered image and display it.In the Embed Element, use the following:
<div class="custom-alt-text"></div>
tag section.
.w-dyn-item
or .custom-alt-text
selectors if you use custom classes):<script> document.addEventListener("DOMContentLoaded", function () { const items = document.querySelectorAll('.w-dyn-item'); items.forEach(item => { const img = item.querySelector('img'); const alt = img?.getAttribute('alt') || 'No alt text'; const altContainer = item.querySelector('.custom-alt-text'); if (altContainer) { altContainer.textContent = alt; } }); });</script>
alt
attribute, and places it into the adjacent .custom-alt-text
div from the Embed.To show Multi Image Field alt text beside each image in Webflow:
<div>
inside the Embed to hold alt text.</body>
to copy the image’s alt
attribute into the div.This lets you dynamically show the alt tag even though Webflow doesn't expose it directly in the Designer.