Jump to content

Code for Summary Blocks Image Aspect Ratio

Recommended Posts

Posted (edited)

Is there any code or code injection which would allow me to set the aspect ratio for images within all summary blocks as "three-four vertical"?

I have a lot of blogposts which have a different aspect ratio and I was wondering if there was a code I could use so that I wouldn't have to go into each blogpost to change this as it would be time consuming and tedious.

Any help would be appreciated.

 

Summary blocks used: carousel / Squarespace 7.1

Screenshot 2024-06-20 145625.jpg

Edited by SiobhanKM
wanted to add the type of summary block we use and version of squarespace
  • Replies 2
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted
2 hours ago, SiobhanKM said:

Is there any code or code injection which would allow me to set the aspect ratio for images within all summary blocks as "three-four vertical"?

..I wouldn't have to go into each blogpost to change this

Hi @SiobhanKM you shouldn't need code to do this. Also don't need to change this for each blog post.

To change all images in a Summary Blocks to show "three-four vertical", you can edit that for each Summary Block. Which I believe is what your screenshot is showing. 

Can you share your page URL and let us know which Summary Block you are trying to change?

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Nerd
When I have time, I like to help on the Forum, but if you need my full attention, please send your request here.

Tools I use (affiliate links😞
📅Blog Date Format plugin (Free by BeyondSpace)
Lazy Load Summary Block plugin (by Squareswebsites
)
📜Privacy Policy & Cookie Consent plugin (10% off by Termageddon
)
📈SEO plugin for Squarespace (by SEOSpace
)

 Did I help? I like coffee (Thank you)

Posted
18 hours ago, melody495 said:

Hi @SiobhanKM you shouldn't need code to do this. Also don't need to change this for each blog post.

To change all images in a Summary Blocks to show "three-four vertical", you can edit that for each Summary Block. Which I believe is what your screenshot is showing. 

Can you share your page URL and let us know which Summary Block you are trying to change?

Here is an example of an old blog post with a summary block with the aspect ratio of "3:2 standard": https://www.krista-mitchell.com/blog/ultimate-crystal-gift-guide

Compared to a newer blog post with the aspect ratio we now want to use and want across all blog posts: https://www.krista-mitchell.com/blog/hekas-triangles-channeling-ancient-egyptian-magic-through-crystals

The reason why I'm looking for code is so that the older blogposts reflect the aspect ratio we want to use without me having to go into each post individually to make the aspect ratio change within each summary block.

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.