Squarespace: how to use css with button IDs
Вставка
- Опубліковано 18 вер 2024
- Need to sharpen up your web design skills by getting involved with a community of creatives? Great news! We are launching our new Pixelhaze Community on Skool.
You can join our waitlist here to find out more: community.pixe... This video will show you how to use CSS with button IDs in Squarespace. By finding each of the 3 button IDs (primary, secondary....), you can easily create custom button designs in Squarespace.
If you want to create custom button designs in Squarespace, this video is for you! We'll show you how to use css with button IDs to create custom gradient button designs that fit your theme perfectly. By the end of this video, you'll have learned how to use the Squarespace CSS editor to create custom button designs that will look great on your website!
Here's the code:
/* Button Styles - Primary */
.sqs-button-element--primary {
background-image: linear-gradient(92.88deg, #CD2100 9.16%, #cc0000 43.89%, #d3132f 64.72%);
color: #FFFFFF !important;
flex-shrink: 0;
text-shadow: rgba(0, 0, 0, 0.35) 0 3px 8px !important;
transition: all .5s;
}
.sqs-button-element--primary:hover {
box-shadow: rgba(0, 0, 0, 0.4) 0 1px 30px;
transition-duration: .1s;
}
Here's an example using a Squarespace block identifier (chrome plugin) to access an individual block. Please note this ID will be different on your Squarespace website:
#block-2cca316b118e59d7f612 .sqs-button-element--primary:hover {
box-shadow: rgba(0, 0, 0, 0.0) 0 1px 30px;
}
If you want to find out more about Squarespace, Canva and other techniques used by leading creative agencies, simply subscribe to this channel and hit the notification bell.
-----
GET A 20% DISCOUNT ON YOUR FIRST ANNUAL/MONTHLY SQUARESPACE PLAN!
Just follow the steps below:
1. Create a free trial in Squarespace by following the link below: squarespacecir...
2. When subscribing to your first plan, use our voucher code to get a 20% discount on your first month/year plan: PixelHaze20
-----------
COMPREHENSIVE ONLINE SQUARESPACE COURSE:
Squarespace Box of Tricks Course by PixelHaze Academy: campus.pixelha...
PROFESSIONAL DESIGN & SUPPORT
If you need additional help to get your Squarespace website up and running, reach out at: pixelhaze.studio
TOP-CLASS SQUARESPACE TEMPLATES AND SQUARESPACE PLUGINS
Don't reinvent the wheel, purchase one of our templates or a range of plugins to speed up your web design process: pixelhaze.store
----------
WHAT IS SQUARESPACE
Squarespace is an all-in-one website builder that includes personal, business and e-commerce hosting plans, e-commerce services for selling online and a domain service.
It is an excellent tool for bloggers, businesses, and a great starting point for graphic designers who are looking to get to grips with web design for the first time.
The standout feature with Squarespace is the growing collection of beautifully designed website templates suitable for businesses in any sector, from photography studios to restaurants and even manufacturing plants. Squarespace is a website management system that allows for real-time updates and one that works responsively across all web platforms and from mobile devices to large screen displays.
-----------
Affiliate notice: We are affiliate partners with Squarespace and may receive remuneration for any purchases via the links on this page.
I'm thoroughly enjoying this video
I love everything about this video!
I'm impressed with the video.
Wow, I learned so much from that video!
I'm really glad I watched this video
Dude this was way too helpful and informative!
This video provides a detailed guide to editing button styles in Squarespace.! Great work
Man, this video helped me how to change the button style from primary to secondary.
This video helped me how to edit button styles in Squarespace.
This video is outstanding in every way.
I can't stop watching this video
it's been incredibly informative!
❤❤❤
There is a subtle drop shadow behind the button text.
The width and height of the button can also be adjusted.
The current button style is a primary button in Squarespace.
The button can be changed from a square to a gradient with or without fill.
The drop shadow is more obvious on the text on a white background.
Hi i have multiple buttons and need to run different script on each how do i do thta without having to add the code block? i tried that but the button just doest look same as what i already have so preferably ill just add the run script to tho button individually.
After copying the block, they paste it into the style editor to make changes to the code.
The primary button style is currently being displayed but can be changed to secondary or tertiary.
There is currently no option to add a button type like a gradient.
I hope that they won't need to change anything else while copying and pasting the element they want to change.
I'm really glad I watched this video
I'm thoroughly enjoying this video
it's been incredibly informative!