Jump to content

Stacked Images

Recommended Posts

Site URL: https://purenew.squarespace.com/about-us

Hi there, 

I'm currently building out a new site for one of my clients, they have several different sections and colours for the services they offer. I have added in a static image showing these, but they would like to now have these click through to each individual page on the site.

What is the best way to tackle this with custom code? I tired adding as individual image blocks but was auto centring them and the spacing was awful. 

Any help would be greatly appreciated. 

Screenshot 2022-09-01 at 18.36.38.png

Link to comment
  • Replies 1
  • Views 288
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

21 minutes ago, jminnsdesign said:

I'm currently building out a new site for one of my clients, they have several different sections and colours for the services they offer. They would like to now have these click through to each individual page on the site.

Instead of an image (or images) you can add them as text links using HTML within a Code Block or Markdown Block. If you give each one a class you'll be able to select the background colour and padding later.

For example, for the first one you could add the following to a Code Block (set to HTML):

<a href="/productions">
  <span class="productions">
    Productions
  </span>
</a>

And in Design > Custom CSS

.productions {
  background: #CA7B3B;
  padding: 7px;
  color: #fff;
  text-transform: uppercase;  
}

 

Edited by paul2009

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

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.