Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

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

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Portfolio hover Replace Link Style
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
4 minutes ago, bangank36 said:

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

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

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

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Portfolio hover Replace Link Style
If you find my answer fit your need, 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...