Jump to content

[Share] How to add text to Gallery Grid Section

Recommended Posts

To add text to the Gallery Grid Section, you can follow these steps.

#1. First, find the ID of the Gallery Grid Section.

In my example, it is: 

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

image.png.e0dd45c1d4f265c883cbb6ab57959af5.png

#2. Next, use this code to Custom CSS box.

section[data-section-id="66b35593870615758574885e"] .gallery-grid:before {
    content: "Featured Clients";
    display: block;
    text-align: center;
    margin-bottom: 10px;
    font-size: 30px;
    color: #000;
    letter-spacing: 0px;
}

image.png.ad6027c9cbe04f6123e221526a5accfc.png

#3. Result

image.png.3152fcc52343270a36e2bdb3fdb26b12.png

#4. If you want to add text next to Gallery Grid, you can use this new CSS code

@media screen and (min-width:768px) {
section[data-section-id="66b35593870615758574885e"] {
 .gallery-grid {
    display: flex;
    justify-content: space-between;
}
/* text style */
.gallery-grid:before {
    content: "Featured Clients";
    display: block;
    text-align: center;
    margin-bottom: 10px;
    font-size: 30px;
    color: #000;
    letter-spacing: 0px;
}
/* gallery images width */
.gallery-grid-wrapper {
    width: 70% !important;
}}}

image.png.705c5a6db63adebc0f44ab1d8303515b.png

Result

image.png.fc3429fb4f7ade1f3b1cb3c5719daf95.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!)

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.