CMS Development

SD_dev
Membro

Add a 2nd featured image on blog posts, is it possible?

resolver

Hi everyone,

Is it possible to add a 2nd featured image field to a blog post?

My site has a very wide blog image design, it's a big hero image.

This uploads and displays - fine.

But it looks really bad when we share on social media like Facebook because the image ratio is not good for that.

Is there a way to have a two upload fields? So I can have 1 wide hero and 1 optimised for social media and our blog listings pages?


Or do I need to redesign my site and reupload images so that they display at a more social media friendly ratio?

Thank you!

0 Avaliação positiva
1 Solução aceita
Jake_Lett
Solução
Orientador(a) | Parceiro
Orientador(a) | Parceiro

Add a 2nd featured image on blog posts, is it possible?

resolver

I have accomplished this before by adding an image tag to the blog post template and give it a label "Hero Image" - https://developers.hubspot.com/docs/cms/hubl/tags#image-src

 

If you need more fields, you could also create a HubSpot module and add it to the template.

 

When complete, you would then use your featured image as your "social image" and hero image for the one displayed on the page.

Exibir solução no post original

2 Respostas 2
Jake_Lett
Solução
Orientador(a) | Parceiro
Orientador(a) | Parceiro

Add a 2nd featured image on blog posts, is it possible?

resolver

I have accomplished this before by adding an image tag to the blog post template and give it a label "Hero Image" - https://developers.hubspot.com/docs/cms/hubl/tags#image-src

 

If you need more fields, you could also create a HubSpot module and add it to the template.

 

When complete, you would then use your featured image as your "social image" and hero image for the one displayed on the page.

SD_dev
Membro

Add a 2nd featured image on blog posts, is it possible?

resolver

Thank you for your tip, I tried a solution like you suggested and it worked well - still fairly easy for the end-user.

0 Avaliação positiva