jminnsdesign Posted September 1, 2022 Share Posted September 1, 2022 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. Link to comment
paul2009 Posted September 1, 2022 Share Posted September 1, 2022 (edited) 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 September 1, 2022 by paul2009 About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity 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. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment