Jump to content

Customize "Image card block" in a blog post

Go to solution Solved by Ziggy,

Recommended Posts

Hi everyone, 

I tried looking on the forum if anyone had the same question, but I only found half of the solution (which is already great ^^)

Site url : https://sailfish-porpoise-m85e.squarespace.com/blog/blog-post-title-two-erhxs-rgb35-6pzex

I'm working on a blog post, and I would like to custom the "Image card block" so that the image is smaller and aligned to the left, and I would like the text to be aligned on the left too, and I also would like it to fill the red block here :

Group1.thumb.jpg.5f8eee8a018981570e3dcac6b42a4bd5.jpg

 

I already found this code to custom the image size :

#block-yui_3_17_2_1_1692881181534_18562.sqs-block-image .image-inset {
    max-width: 40%;
    height: auto;
    margin: 1 auto;
}

As you can see,  I played a bit with it and managed to move the image to the left.

 

Is it possible to move the text and make it fill the block ?

Thanks !

Link to comment

Can you add a site wide password for your website and share it here so someone can look at what you've done and suggest some code?

https://squarefortytwo.com/squarespace-guides/add-a-site-wide-password-to-your-squarespace-website

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • Solution

It works, thanks!

Try this Custom CSS, you can try replacing the code you currently have:

#block-yui_3_17_2_1_1692881181534_18562.sqs-block-image .design-layout-card:not(.sqs-narrow-width)>div:first-child {
    width: 30% !important;
  }
#block-yui_3_17_2_1_1692881181534_18562.sqs-block-image .design-layout-card:not(.sqs-narrow-width) .image-card-wrapper {
    width: 65% !important;
  }

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
46 minutes ago, Margaux said:

Works perfectly, thank you so much !

Brilliant!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

@Jen__ You can control this globally in the style settings which may work best for you if this is the only place you are using the Card Image Block. Given that these blocks now only apply to blogs since the Fluid Engine Editor is on every other page this is probably the case. If not then you should be able to use the previous code and apply it to your website using you block IDs, or by just removing the block ID portion of the code like this:

.sqs-block-image .design-layout-card:not(.sqs-narrow-width)>div:first-child {
    width: 30% !important;
  }
.sqs-block-image .design-layout-card:not(.sqs-narrow-width) .image-card-wrapper {
    width: 65% !important;
  }

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
9 minutes ago, Jen__ said:

Thanks for your speedy solution!
I was able to correct the issue using site styles.
Extremely grateful to you Ziggy 🙏🙏

Glad to hear that, happy to help!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

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.