Site logo

Archived topic

Hero image elements don't bring in the Alt tag

47 replies · Started by Carrie on October 31, 2019

Viewing posts 1–15 of 48

Good morning! When I use an element to bring in a hero image, it doesn't seem to carry the alt tag with it. This is important for SEO, especially on the home page when it's the primary image on the page.

Is there a workaround to get the alt tag included with all hero images?

When you say, "adding the same image as a static image inside the header element content," I'm not sure what you mean. Can you please elaborate?

Leo, thank you so much! I had tried that, but it had clutter that I didn't realize needed removing... blah blah
Removing the class junk did the trick.

I appreciate your help - THANK YOU!!

No problem :)

Whoops, I have a new issue - there is a hairline of white space appearing below the static images that I can't seem to get rid of. It isn't on the image itself, I'm using .site-content { padding-top: 0 !important; } in the CSS for the page, and I've got padding above the fill box underneath the image set to zero and the column top set to zero.

Examples:
https://www.carriemorgan.com/about-carrie-morgan/
https://www.carriemorgan.com/content-seo-brands-agencies/

Could the style of the element be adding that space?

I'd appreciate your help so much, Leo.

We can probably try a bit of CSS.

Can you link me to the page using the featured image?

The option is set to above content area in the customizer for pages?

If so try this CSS:

.featured-image.grid-container {
    max-width: 100%;
}
This archived topic is closed to new replies.