Тёмный
No video :(

How to create a clickable list item in Squarespace // People Section Click Entire Item 

InsideTheSquare - Squarespace Tutorials
Подписаться 25 тыс.
Просмотров 4,2 тыс.
50% 1

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.
.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
}
🔗Links to Related Content 🔗
→How to install CSS in one page on your Squarespace site: insidethesquare.co/squarespac...
→How to target one section on your Squarespace site with CSS
insidethesquare.co/squarespac...
→Overview of list sections: insidethesquare.co/list
→Squarespace Length Values Guide
insidethesquare.co/resources/...
→ Free Training: Squarespace CSS Basics: insidethesquare.co/learn
- - -
❤️ Like this tutorial? Buy me a coffee to say thanks! ☕ buymeacoffee.com/insidethesquare
- - -
📑 Get access to my collection of CSS codes for Squarespace at insidethesquare.co/css
- - -
⭐ NEW: List of my top 7 FREE Squarespace tutorials: insidethesquare.co/top7
- - -
🙋 Need some help? Visit ​insidethesquare.co/code-help​ to see my current support options.
- - -
💻 WEBSITE → insidethesquare.co
📧 NEWSLETTER → insidethesquare.co/email
🤳 INSTAGRAM → / thinkinsidethesquare
👍 FACEBOOK → / insidethesquare
📌 PINTEREST → / insidethesquare
- - -
💸 GET 10% OFF YOUR FIRST YEAR OF SQUARESPACE 💸 Use my affiliate link and code INSIDE10 - You'll save 10% off your first annual subscription & Squarespace will give me a little commission for sending you their way 😎 🔗 INSIDE10 → insidethesquare.co/inside10
- - -
The term "Squarespace" is a trademark of Squarespace, Inc. This video was not approved or endorsed by Squarespace, Inc. I just really love their platform ♥

Опубликовано:

 

7 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 32   
@GemmaSonders
@GemmaSonders Месяц назад
youre really a life saver! thank you! you deserve so much happiness for your hard work!
@InsideTheSquare
@InsideTheSquare Месяц назад
Thank you so much! :)
@hatguyjoe
@hatguyjoe 9 месяцев назад
Thanks!
@InsideTheSquare
@InsideTheSquare 9 месяцев назад
You’re so welcome - thank you for your support! 🥰
@ajwashahid3842
@ajwashahid3842 10 месяцев назад
Really helpful playlist! Could you let me know how can I apply the same hover effects on a block set of image and text altogether to make it clickable? Maybe adding an overlay button on everything? Do note that this block is not part of a template list. I would really appreciate the help!!
@InsideTheSquare
@InsideTheSquare 10 месяцев назад
Interesting idea! Technically, we could apply the same technique using the list section button that applies to the whole thing, but it would take some special code creation. Feel free to book a strategy session if you want to explore this idea: insidethesquare.co/strategy
@JuanGrix
@JuanGrix 6 месяцев назад
Awesome videos as always! Is it possible to do something similar to this on portfolios? So far I can only make the buttons clickable but not the images 😞
@InsideTheSquare
@InsideTheSquare 5 месяцев назад
I'm not sure I understand your issue; portfolios don't have buttons, but the project thumbnail images are clickable. If you're talking about a portfolio section and not a portfolio of projects, that is a list section so this code will work. Hope that info helps with your project.
@zimmatron
@zimmatron 4 месяца назад
This tutorial was 🔥 worked wonders for me to do it as a case study section to link through to a main website.. i have a quick question is there a way i can make the text become a colour rollover instead of the background please? would ideally like my titles to become bold and change colour if possible please
@InsideTheSquare
@InsideTheSquare 4 месяца назад
That's a great question - and yes! You can change the color & weight properties for any of the text based selectors inside the list item using the same technique. I have a free list of text/property selectors available at insidethesquare.co/textguide
@zimmatron
@zimmatron 3 месяца назад
@@InsideTheSquare ahh brilliant thank you, i will check it out now.
@tc4586
@tc4586 4 месяца назад
HI this is great! I am having issues with the spacing though since i am not using images in the blocks only title and text. I wont center the content and the title is too close to the border. Any suggestions?
@InsideTheSquare
@InsideTheSquare 4 месяца назад
You can try turning on the card layout under the style option and then adjusting the padding and alignment using the editor. Hope that workaround helps!
@sebastianr5531
@sebastianr5531 5 месяцев назад
any idea how I can fix the button to go up, it keeps going down no matter if I change the number to a negative or positive. I left the margin-bottom at -28rem. TIA
@InsideTheSquare
@InsideTheSquare 5 месяцев назад
It's hard to say without seeing your code, but you can try a negative margin-top!
@doveadventures
@doveadventures 9 месяцев назад
Hi, is there a way to track clicks on photos in the analytics section for sponsored ad purposes?
@InsideTheSquare
@InsideTheSquare 9 месяцев назад
Great question! You can add a UTM tracking code to the list item link 👍👍
@doveadventures
@doveadventures 9 месяцев назад
@@InsideTheSquare have you made a video on how to do that? Btw, your video on creating a social share buttons really save the day. Thank you!
@shawnbuck8134
@shawnbuck8134 10 месяцев назад
Love this! How do I apply this to only one section of a page and not the whole site? I tried putting [data-section-id=”123456”] * at the top of the code, but it didn't seem to help. Any ideas?
@InsideTheSquare
@InsideTheSquare 10 месяцев назад
Skip the * and you'll be good to go 😉
@shawnbuck8134
@shawnbuck8134 10 месяцев назад
@@InsideTheSquare Thanks so much! That fixed it. Also, I just noticed that "opacity" is misspelled in this line of the video description: .list-item-content__button:hover{ oapcity:0 }
@shawnbuck8134
@shawnbuck8134 10 месяцев назад
Also also, I noticed that the height and margin-bottom didn't fit the mobile version of my site. I removed the "!important" from both of those and added the below code, then adjusted the mobile sizes, and it worked! I'm shocked that I was able to figure this out. I've learned so much from your videos and the cheatsheet. Thanks so much for your awesome work 🙌 @media only screen and (max-width:767px) {.list-item-content__button{ height: 45.7rem!important; margin-bottom:-45.7rem!important} }
@InsideTheSquare
@InsideTheSquare 10 месяцев назад
@@shawnbuck8134 so glad you were able to troubleshoot and got it working for your site - that's awesome! 🙌
@kellylong1773
@kellylong1773 6 месяцев назад
I don't know what I'm doing wrong. I don't get full opacity when I hover so I can still see the button text. I can adjust the margins, add borders, change the background color, but the opacity is never fully at 0 so the button text and a trace of the button color shows. Got any tips?
@InsideTheSquare
@InsideTheSquare 6 месяцев назад
Try adding !important after the 0 for your opacity to force your browser to read your code, like this: opacity:0!important;
@kellylong1773
@kellylong1773 6 месяцев назад
@@InsideTheSquare It worked, thank you! You are 100% the best thing that has ever happened to Squarespace. I purchased your cheat sheet and it's been incredibly helpful. I so appreciate you!
@JakeThompson
@JakeThompson 10 месяцев назад
👍👍
@ajslobig
@ajslobig 3 месяца назад
Hey friends, the section in the description for hiding the button on hover is missing a ; it should look like this: .list-item-content__button:hover{ opacity:0 !Important; }
@InsideTheSquare
@InsideTheSquare 3 месяца назад
Fun fact: You don’t need a ; symbol at the end of code unless you’re separating properties! I have a free class on basic CSS if you want to learn more about how to create code: insidethesquare.co/learn
@ajslobig
@ajslobig 3 месяца назад
@@InsideTheSquare I had no idea! I certainly was having some issues with my code, but the tiny little ; fixed it. Maybe I had forgotten the } as well.
@anissamoussi
@anissamoussi 3 месяца назад
Note to anyone who will be copying and pasting directly from the description: make sure you add !important to this: .list-item-content__button:hover{ opacity:0 } I think it might have been a typo/oversight.
@InsideTheSquare
@InsideTheSquare 3 месяца назад
Buttons are notorious for needing to be important 😉 thanks for sharing this tip!
Далее
Create Vertical Line Designs in Squarespace
18:53
Просмотров 4,7 тыс.
SEO Is A Waste Of Time in 2024
11:56
Просмотров 314 тыс.
5 Squarespace Mobile Menu Design Hacks
11:41
Просмотров 7 тыс.
Squarespace Galleries in 7.1 | In-Depth Guide
20:18
Просмотров 11 тыс.
JPEG is Dying - And that's a bad thing
8:09
Просмотров 184 тыс.
13 Things To Remove From Your Website Immediately
12:33