Alt Image Tag for Blog Profile Picture

SOLVE
Highlighted
New Contributor

While working in the SEO tool on Hubspot (which is great), the last issue I was going to address was the missing image alt tags. All image alt tag issues reported were for the blog author images. How can this be resolved?

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Highlighted
Solution
Advisor | Elite Partner

Hi @nikkiIPH !

 

You would need to go into the blog template, find the code for the author part of your blog and add the alt tag from there. I usually just put in the token for the author's name:

<img src="{{ content.blog_post_author.avatar }}" alt="{{ content.blog_post_author.display_name }}">


You can get to the template by opening your blog page while logged into Hubspot, clicking the Sprocket button in the top right, and clicking Edit Listing Template.

01.png

 

Most templates would have the code in the Blog Content module. Click on it and then in the right panel scroll to the bottom to click Edit post template.

02.png


Then if you Ctrl+F (Command+F on Mac) and search for 'author' you should be able to find it.

Hope this helps : )

Alyssa Wilie

Web Developer at LyntonWeb

If this answer solved your question, please mark it as the solution!

View solution in original post

2 Replies 2
Highlighted
Solution
Advisor | Elite Partner

Hi @nikkiIPH !

 

You would need to go into the blog template, find the code for the author part of your blog and add the alt tag from there. I usually just put in the token for the author's name:

<img src="{{ content.blog_post_author.avatar }}" alt="{{ content.blog_post_author.display_name }}">


You can get to the template by opening your blog page while logged into Hubspot, clicking the Sprocket button in the top right, and clicking Edit Listing Template.

01.png

 

Most templates would have the code in the Blog Content module. Click on it and then in the right panel scroll to the bottom to click Edit post template.

02.png


Then if you Ctrl+F (Command+F on Mac) and search for 'author' you should be able to find it.

Hope this helps : )

Alyssa Wilie

Web Developer at LyntonWeb

If this answer solved your question, please mark it as the solution!

View solution in original post

Highlighted
New Contributor

That worked. Thanks! 

Reply
0 Upvotes