Jump to content

Changing caption font size on gallery grid masonry block

Recommended Posts

  • 2 weeks later...
  • 1 year later...
On 12/5/2020 at 4:46 AM, tuanphan said:

Add to Home > Design > Custom CSS

p.gallery-caption-content {
    font-size: 30px !important;
}

 

This worked for me, THANK YOU, this was a massive headache for me.

For anyone else make sure you copy all of the code.

I also used this on portfolio image captions in the Grid:Masonary format if that helps others. I assume it would be the same for other image captions but I haven't checked but it is working site wide.

Link to comment
On 12/5/2020 at 4:46 AM, tuanphan said:

Add to Home > Design > Custom CSS

p.gallery-caption-content {
    font-size: 30px !important;
}

 

Is there a bit I need to add to it to make it specific to either desktop or mobile? And if so what do I need to add for each please?

Link to comment
On 8/22/2022 at 6:23 AM, RGMakes said:

Is there a bit I need to add to it to make it specific to either desktop or mobile? And if so what do I need to add for each please?

To make it on desktop, use this code

@media screen and (min-width:768px) {
p.gallery-caption-content {
    font-size: 30px !important;
}
}

To make it on mobile, use this code

@media screen and (max-width:767px) {
p.gallery-caption-content {
    font-size: 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

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.