Jump to content

Can I style captions through the SquareSpace designer?

Recommended Posts

Hi,

I'm currently designing a site in squarespace. I'm a documentary photographer.

I'd like to be able to customise the look of my captions as show in the attached screengrab.

I'm wondering if this is possible through the SquareSpace designer. I couldn't find a way - instead I'm using the following custom CSS/HTML:

Custom CSS

.gallery-section .gallery-caption p whenwhere::before {
  // respect new line in Description textbox
  content: "\A"; 
  white-space: pre;
}

.gallery-section .gallery-caption p whenwhere {
  color: #990000;
  font-style: italic;
}

Custom HTML

I am using a custom <whenwhere/> element for the date/time + location part of my caption:

Walter Kruger sits in the wreckage of the Corrugated Iron Church.
<whenwhere>3 January 2021. Yuwaalaraay Country / Lightning Ridge, NSW.</whenwhere>

This is entered in the Description textbox for the image. The images are displayed using a Gallery Section.

 

Is this possible from within the SquareSpace designer at all? I couldn't find a way through the designer to access and style gallery captions, but that could (probably) just be me.

Thanks!
Michael

Untitled.png

Edited by Michael Weinhardt
Initial CSS incorrect + Misleading Title
Link to comment
25 minutes ago, Michael Weinhardt said:

Hi,

I'm currently designing a site in squarespace. I'm a documentary photographer.

I'd like to be able to customise the look of my captions as show in the attached screengrab.

What is shown in the screengrab is the result of the following css:

.gallery-section .gallery-caption p {
  white-space: pre;
}

.gallery-section .gallery-caption p whenwhere {
  color: #990000;
  font-style: normal;
}

Note - I am using a custom <whenwhere/> element for the date/time + location part of my caption:

Walter Kruger sits in the wreckage of the Corrugated Iron Church.
<whenwhere>3 January 2021. Yuwaalaraay Country / Lightning Ridge, NSW.</whenwhere>

This is entered in the Description textbox for the image. The images are displayed using a Gallery Section.

Is this possible from within the SquareSpace designer at all? I couldn't find a way through the designer to access and style gallery captions, but that could (probably) just be me.

Thanks!
Michael

Untitled.png

I saw you used html in the caption and it showing custom style already, what's wrong

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • Michael Weinhardt changed the title to Can I style captions through the SquareSpace designer?
47 minutes ago, Michael Weinhardt said:

Hi bangank36,

I have the caption looking how I wanted, but only with custom HTML+CSS. I'm wondering if there is a way to achieve this look natively via the SquareSpace designer ie so I don't need to customise with code.

Cheers,
Michael

OH I see, it's not possible, you only can change the generic font and color via section color and heading style

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.