abbiericher Posted February 27 Share Posted February 27 Hey group! I would like to change my button content when on hover. I know it is possible, but I cant find a proper snippet for it to works on my clients website. Here is the code I used: .large-button-shape-rounded .sqs-block-button .sqs-block-button-element--large:hover::before { content: "voir le forfait"!important; } And here are the buttons I would like to apply the changes: website: https://alau-site-web.squarespace.com/ password: freelance Thank you! Link to comment
nick_sh Posted February 27 Share Posted February 27 You need to make text blue on hover, and position ::before absolutely: .sqs-block-button .sqs-block-button-element--large:hover { color: var(--secondaryButtonBackgroundColor); } .sqs-block-button .sqs-block-button-element--large:hover::before { content: "voir le forfait"!important; color: white; position: absolute; top: 50%; left: 50%; transform: translate3d(-50%, -50%, 0); } Try new Squrespace ID & class finder Chrome Extension ✔ Supports Fluid Engine ✔ Generate Media Queries code ✔ Toggle IDs with Option / Alt ____ Hire me for SquareSpace development Link to comment
Solution abbiericher Posted February 28 Author Solution Share Posted February 28 18 hours ago, nick_sh said: You need to make text blue on hover, and position ::before absolutely: .sqs-block-button .sqs-block-button-element--large:hover { color: var(--secondaryButtonBackgroundColor); } .sqs-block-button .sqs-block-button-element--large:hover::before { content: "voir le forfait"!important; color: white; position: absolute; top: 50%; left: 50%; transform: translate3d(-50%, -50%, 0); } Awesome! It works! Thank you so much 🙂 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