Jump to content

Rounding corners of portfolio/gallery thumbnails

Go to solution Solved by tuanphan,

Recommended Posts

  • Solution
13 hours ago, Nebo said:

Site URL: https://www.heynibras.com

Hi all,

I'd like to round the corners of the images displayed on my homepage in the gallery/portfolio thumbnail section. I've scoured the forums and tried all the CSS solutions suggested in the answers so far but nothing seems to work. Would love and appreciate some help 🙏🏽

Thanks!

Add to Design > Custom CSS

/* Round corners portfolio items */
body.homepage a.grid-item, body.homepage .grid-image {
    border-radius: 10px;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
4 hours ago, ZACELA258 said:

How do you apply this effect to all portfolio pages?

 

Use this code

/* Round corners portfolio items */
a.grid-item, .grid-image {
    border-radius: 10px;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 years later...

Hey @tuanphan Thank you so much for this! However, this is not working on my project thumbnails on my site. Can you help me figure out why? I am using "Gallery" images for my projects is this why? Heres my site:
adamnienow.com

I found a chrome extension that told me these are collection items "#collection-656fce0fe76c107c57b7996e"

Do I need to paste this into the code somewhere?

Screen Shot 2023-12-06 at 2.04.40 PM.png

Edited by NienowBrand
Additional info
Link to comment
On 12/7/2023 at 5:02 AM, NienowBrand said:

Hey @tuanphan Thank you so much for this! However, this is not working on my project thumbnails on my site. Can you help me figure out why? I am using "Gallery" images for my projects is this why? Heres my site:
adamnienow.com

I found a chrome extension that told me these are collection items "#collection-656fce0fe76c107c57b7996e"

Do I need to paste this into the code somewhere?

Screen Shot 2023-12-06 at 2.04.40 PM.png

Use this code

article.index-item.has-item-image, article.index-item.has-item-image figure {
    border-radius: 15px !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 6 months later...

Hi @tuanphan, I've successfully used your code above for rounded corners:

/* Round corners portfolio items */ body.homepage a.grid-item, body.homepage .grid-image { border-radius: 10px; }

How could this be adjusted so the rounded corners are maintained when hovered over? At the moment, hover turns my index images square again. 

Thank you!

Link to comment
55 minutes ago, Squashy15 said:

How could this be adjusted so the rounded corners are maintained when hovered over? At the moment, hover turns my index images square again.

Please post the URL for a page on your site where we can see your issue. For us to see the URL you need to include the link in the content of your post. The URL field the forum software provides is not shown to us.

A link to the backend of the your site won’t work for us, i.e. a URL that contains /config/.

Please set up a site-wide password, if your site is not public and you've not already done so.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site.

Please read the site-wide password and how to share a link documentation to understand how they work.

You may find How to post a forum question post useful.

We can then take a look at your issue.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 2 months later...
On 8/23/2024 at 12:21 AM, NienowBrand said:

Hey @tuanphan I'm back 😅 I updated my homepage to be a gallery rather than projects and I can't for the life of me figure out the rounded corners code. Would you be able to help me out?

Adamnienow.com

You can use this to Website Tools > Custom CSS

body.homepage div.slide img {
    border-radius: 30px !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 8/27/2024 at 7:19 AM, NienowBrand said:

@tuanphan Thank you SO much, that looks so good! It looks like it rounded the corners of my Instagram bar in my footer, but it isn't rounding the videos pulled from my instagram. Do you have any thoughts on a line of code for that? I really appreciate your help!

You can add this extra code

div.instagram-block .sqs-video-wrapper.video-fill {
    border-radius: 12px;
    overflow: hidden;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.