Jump to content

Adding a Services Title ABOVE the Gallery Image

Recommended Posts

Hi!

I'm trying to design a Services Gallery with a Title above each image and a Learn More button below each image. See the attached image.

I can't find a way to separate the two in the edit content or section windows. Does anyone know how to make this possible, or do I need some custom code? I'd rather use the services block than build out the gallery with separate elements. The client will eventually need to manage the website themselves, and it will be easier to keep everything aligned if we use the services block.

Any help would be appreciated. The site is under development, so I don't have a link to share at this time. 

Thanks in advance,

Anita

 

Service Title above Image.png

Link to comment
28 minutes ago, AnitaMarie said:

Hi!

I'm trying to design a Services Gallery with a Title above each image and a Learn More button below each image. See the attached image.

I can't find a way to separate the two in the edit content or section windows. Does anyone know how to make this possible, or do I need some custom code? I'd rather use the services block than build out the gallery with separate elements. The client will eventually need to manage the website themselves, and it will be easier to keep everything aligned if we use the services block.

Any help would be appreciated. The site is under development, so I don't have a link to share at this time. 

Thanks in advance,

Anita

 

Service Title above Image.png

Can you share your URL so I can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

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

Hi! Thanks for the response. 😃

We haven't launched the site yet, so I don't have a URL to share. 

Here's a screengrab of the services gallery we are working on. We want to move the service title above the picture but can't find a way to do this in the services gallery block. 

Screenshot 2024-05-14 131103.png

Link to comment
On 5/15/2024 at 12:14 AM, AnitaMarie said:

Hi! Thanks for the response. 😃

We haven't launched the site yet, so I don't have a URL to share. 

Here's a screengrab of the services gallery we are working on. We want to move the service title above the picture but can't find a way to do this in the services gallery block. 

Screenshot 2024-05-14 131103.png

You can follow these steps. If it doesn't work, you can share url, we can check easier.

(1) First, you install this free tool to find Service Block Section ID

https://chromewebstore.google.com/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff

In my example, we will have

section[data-section-id="6615fd311e011753424b1958"]

image.png.1af545d1f55d704ef9216b21a07d5e77.png

(2) Use this code to Website > Website Tools > Code Injection > Footer. Replace example ID with your ID.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('section[data-section-id="6615fd311e011753424b1958"] li.list-item').each(function(){
    var cr = $(this).find('.list-item-media');
    var cr2 = $(this).find('h2.list-item-content__title');
 $(cr2).insertBefore(cr);
  });
});
</script>
<style>
.list-item-content__description {
    margin-top: 0px !important;
}
.list-item-media {
    margin-top: 10% !important;
}
</style>

 

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
  • 2 weeks later...

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.