CMS Development

SD_dev
メンバー

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

解決

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 いいね!
1件の承認済みベストアンサー
Jake_Lett
解決策
ガイド役 | Solutions Partner
ガイド役 | Solutions Partner

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

解決

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.

元の投稿で解決策を見る

2件の返信
Jake_Lett
解決策
ガイド役 | Solutions Partner
ガイド役 | Solutions Partner

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

解決

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
メンバー

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

解決

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

0 いいね!