InsideTheSquare.co

View Original

How to create a clickable list item in Squarespace

See this content in the original post

This tutorial was recorded in Squarespace 7.1 and will not work on legacy sites built on version 7. For more information, visit insidethesquare.co/themes

Squarespace list sections - sometimes referred to as people sections - have four main elements you can display.

An image, title, description, and a button, unique for each item. Unfortunately, the only clickable thing is the button! That was not good enough for a new website layout I’m working on, so I figured out a way to make the clickable area the entire list item, and that’s exactly what I’ll be teaching you in this tutorial.

To be clear - this is for a SIMPLE list section, and the button won’t be visible anymore but it is clickable, and yes, we can still create hover effects!

There are a few values you’ll want to change in this code - the height and the margin-bottom. You also might want to change the transformation, so be sure to watch the video so you can see how this code works and what you’ll want to adjust so it fits the content on your own site.

See this content in the original post
See this content in the original post

.list-item-content__button{

opacity:0;

width:100%;

transform:translatey(-95%);

border-radius:0!important;

height: 28rem!important;

margin-bottom:-28rem!important

}

.list-item-content__button:hover{

opacity:0

}

.list-item {

background:#fff

}

.list-item:hover{

background:#e5f5f6

}

See this content in the original post

🔗 How to install CSS in one page on your Squarespace site

🔗 How to target one section on your Squarespace site with CSS

📄 Overview of list sections

📏 Squarespace Length Values Guide

Free Training: Squarespace CSS Basics