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
  • 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

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

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.