Jump to content

How do I style my portfolio carousel images to be circle shape?

Recommended Posts

Hi there, 

I am using the portfolio carousel block on my homepage to use as a preview of projects. The preset image shape for the portfolio carousel is square, however I am wanting the shape of the images to be circle. Is there a custom code I can use to style these images?

Link to comment
  • Replies 3
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Hey @GabriellaW123 - I would love to help but I am a little confused by your terminology. 😬

If you have a summary block that shows content from a collection on the home page, set the image aspect ratio and use this code to make the images a circle: 
.sqs-gallery-design-carousel img{border-radius: 50%!important}


To get super nerdy here, I wanna explain why I was a little hesitant to answer. A portfolio is a specific collection type in Squarespace, but we can't feature project info in any carousel layout. A summary block is a content block that can pull data from a blog, event, or store (not a portfolio of projects)

If you want to share a link I can make sure we are talking about the same thing! You can set an unpublished site to password protected so people can look before you launch. You'll find that under settings -> site availability -> password

Anyhoo, hope that initial code does the trick! Add that to your site wide CSS and any summary block set to carousel will have images with curved corners.

🤓 Creator of InsideTheSquare.co
SQUARESPACE CIRCLE LEADER SQUARESPACE EXPERT SQUARESPACE EMPLOYEE EDUCATOR CERTIFIED CUSTOM CODE EXPERT

🗺️ New to Squarespace? Get your free roadmap: insidethesquare.co/roadmap
🙋‍♀️ New to CSS? Learn the basics for free: insidethesquare.co/learn
️ Ready to go pro? Get my custom code collection: insidethesquare.co/css

 

BeccaHarpain.gif.236d6ddd88c7d637645b762799f501a8.gif

 

Link to comment

Hey @inside_the_square! Thanks so much for getting back to me so promptly.

Ive attached below the section block I am wanting to use in my site (highlighted in red). I would like to style these square images to a circle.

Ive tried your above code, but it still doesnt seem to work for me... any help would be much appreciated!

Screen Shot 2024-03-04 at 3.55.03 PM copy.png

Link to comment

Gotcha - thank you for sharing that screenshot!!

That's a carousel list section auto layout, and you can have those images display as a circle without any code.

In edit mode, select edit content, and under your design tab you'll see the image crop option. You can pick circle from that list and Squarespace will crop it for you. 👍👍

 

🤓 Creator of InsideTheSquare.co
SQUARESPACE CIRCLE LEADER SQUARESPACE EXPERT SQUARESPACE EMPLOYEE EDUCATOR CERTIFIED CUSTOM CODE EXPERT

🗺️ New to Squarespace? Get your free roadmap: insidethesquare.co/roadmap
🙋‍♀️ New to CSS? Learn the basics for free: insidethesquare.co/learn
️ Ready to go pro? Get my custom code collection: insidethesquare.co/css

 

BeccaHarpain.gif.236d6ddd88c7d637645b762799f501a8.gif

 

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.