Jump to content

[Share] Displaying the number of images below as a caption

Recommended Posts

Posted

First, you need to find Gallery Section ID.

In my example, it is:

section[data-section-id="66ed2c3e2f063471736e09c1"]

image.png.8815c92c2828e7a9d9add620470e0875.png

#1. Gallery Grid

Use this to Custom CSS box

section[data-section-id="66ed2c3e2f063471736e09c1"] {
div.gallery-grid-wrapper {
    counter-reset: css-counter 0;
    list-style-type: none;
}
figure.gallery-grid-item {
    counter-increment: css-counter 1;
    position: relative;
}
figure.gallery-grid-item::after {
    content: counter(css-counter) '/12';
    bottom: 0;
    font-size: 20px;
    left: 0;
    color: black;
}}

image.thumb.png.ee3e4e92246f09d273205c730b42607c.png

result

image.png.af372a06ebe28b2d4855d7493107206e.png

#2. Gallery Strips

section[data-section-id="66ed2c3e2f063471736e09c1"] {
div.gallery-strips-wrapper {
    counter-reset: css-counter 0;
    list-style-type: none;
}
figure.gallery-strips-item {
    counter-increment: css-counter 1;
    position: relative;
}
figure.gallery-strips-item::after {
    content: counter(css-counter) '/12';
    position: absolute;
    bottom: 0;
    font-size: 20px;
    left: 5px;
    color: black;
}}

image.thumb.png.78a6931cdcb4c189d352f4920c9c1031.png

result

image.png.34f0e08bd46c02b6f0d63cb0b1c52917.png

#3. Gallery Masonry

section[data-section-id="66ed2c3e2f063471736e09c1"] {
div.gallery-masonry-wrapper {
    counter-reset: css-counter 0;
    list-style-type: none;
}
figure.gallery-masonry-item {
    counter-increment: css-counter 1;
    position: relative;
}
figure.gallery-masonry-item::after {
    content: counter(css-counter) '/12';
    position: absolute;
    bottom: 0;
    font-size: 20px;
    left: 0;
    padding-left: 5px;
    padding-right: 5px;
    color: black;
    background-color: #fff;
}}

image.png.f9eee555fee8ca6c6de920f7dc1a0a16.png

#4. Gallery Reel

section[data-section-id="66ed2c3e2f063471736e09c1"] {
.gallery-reel-list {
    counter-reset: css-counter 0;
    list-style-type: none;
}
figure.gallery-reel-item{
    counter-increment: css-counter 1;
}
figure.gallery-reel-item::before {
    content: counter(css-counter) '/12';
    position: absolute;
    bottom: 0;
    font-size: 20px;
    left: 0;
    padding-left: 5px;
    padding-right: 5px;
    color: black;
    background-color: #fff;
}}

image.png.9e4b582c3768ae32c415028bf2310c43.png

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!)

  • Replies 0
  • Views 57
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.