Image ‘alt’ attribute

Posted in: Newspaper
Post count: 25

I am using the Newspaper theme and noticed that the featured image of each post is displayed as a background-image inside a <div> with the class tdb-featured-image-bg, instead of being rendered as an tag.

This approach makes it impossible to use the alt attribute, which is essential for:

– SEO, since Google does not properly index images used as backgrounds;

– Accessibility, as screen readers cannot interpret the image.

I would like to confirm with you:

1) Is this behavior the default of the theme, or is there any setting to display the featured image as an tag with the alt attribute?

2) If there is no setting, what would be the recommended way to implement this without losing compatibility in future updates (for example, using a child theme)?

Thank you in advance for your support.

Post count: 35449

Hi,

To have this option, you’ll need to replace the Single Post BG Featured Image with Single Post Featured Image. The first one sets the image as a background using CSS, and the second shortcode sets the image using HTML img.

Thank you!

Post count: 25

Thank you Calin!

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.