ssjewelry Posted June 25 Share Posted June 25 Would anyone happen to know how to customize the button like the one in this site? There's an existing underline on the button and when you hover over it, the underline disappears. I'd like to create the same effect with CSS! Link to comment
tuanphan Posted June 25 Share Posted June 25 (edited) We can use CSS code to do this. Can you share link your site? We can check & adjust code easier Edited June 25 by tuanphan Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
ssjewelry Posted June 25 Author Share Posted June 25 https://www.susiesaltzman.com/ 😀 antovicodg 1 Link to comment
tuanphan Posted June 25 Share Posted June 25 1 hour ago, ssjewelry said: https://www.susiesaltzman.com/ 😀 I don't see button on homepage. Which page are you referring to? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
ssjewelry Posted June 25 Author Share Posted June 25 You can check about page - there's a get in touch button 🙂 But would like to have the effect across all buttons on the site except add to cart buttons Link to comment
tuanphan Posted June 26 Share Posted June 26 On 6/25/2023 at 2:36 PM, ssjewelry said: https://www.susiesaltzman.com/ 😀 Add to Design > Custom CSS /* Button underline */ a.sqs-block-button-element--small.sqs-button-element--tertiary.sqs-block-button-element:after { content: ""; background-color: white; position: absolute; left: 0; width: 100%; height: 1px; bottom: 0; transition: all 0.3s ease; } a.sqs-block-button-element--small.sqs-button-element--tertiary.sqs-block-button-element { position: relative; } a.sqs-block-button-element--small.sqs-button-element--tertiary.sqs-block-button-element:hover:after { width: 0; transition: all 0.3s ease; } antovicodg 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
ssjewelry Posted June 27 Author Share Posted June 27 Would it be possible to have the underline disappear from both sides? Almost like the disappearance converges into the middle 🙂 THANK YOU! Link to comment
Solution tuanphan Posted June 27 Solution Share Posted June 27 12 minutes ago, ssjewelry said: Would it be possible to have the underline disappear from both sides? Almost like the disappearance converges into the middle 🙂 THANK YOU! Use this new code a.sqs-block-button-element--small.sqs-button-element--tertiary.sqs-block-button-element:after { content: ""; background-color: #fff; position: absolute; left: 0; width: 100%; height: 1px; bottom: 0; transition: all .3s ease; transform: scale(1); } a.sqs-block-button-element--small.sqs-button-element--tertiary.sqs-block-button-element { position: relative; } a.sqs-block-button-element--small.sqs-button-element--tertiary.sqs-block-button-element:hover:after { transform:scale(0); transition: all .3s ease; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
ssjewelry Posted June 27 Author Share Posted June 27 YAY! This is perfect! Thank you SO SO much! 😁🤩 Link to comment
ssjewelry Posted June 30 Author Share Posted June 30 Hi @tuanphan! Would you know how to shorten the button underline so it's the same length as the text? 🙂https://www.susiesaltzman.com/new-home Link to comment
tuanphan Posted July 1 Share Posted July 1 16 hours ago, ssjewelry said: Hi @tuanphan! Would you know how to shorten the button underline so it's the same length as the text? 🙂https://www.susiesaltzman.com/new-home Add this CSS under a.sqs-block-button-element--small.sqs-button-element--tertiary.sqs-block-button-element { padding-left: 0 !important; padding-right: 0 !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
ssjewelry Posted July 4 Author Share Posted July 4 Hello again @tuanphan! I created a "medium" version of the button so I can have it in a different color, but I'm not seeing the underline effect. Can you kindly help please? 🙂 https://www.susiesaltzman.com/ Here is the code I used: Quote /* BUTTON UNDERLINE */ a.sqs-block-button-element--medium.sqs-button-element--tertiary.sqs-block-button-element:after { content: ""; background-color: #50332e; position: absolute; left: 0; width: 100%; height: 1px; bottom: 0; transition: all .3s ease; transform: scalex(1); } a.sqs-block-button-element--medium.sqs-button-element--tertiary.sqs-block-button-element { position: relative; } a.sqs-block-button-element--medium.sqs-button-element--tertiary.sqs-block-button-element:hover:after { transform:scalex(0); transition: all .3s ease; } a.sqs-block-button-element-medium.sqs-button-element--tertiary.sqs-block-button-element { padding-left: 0 !important; padding-right: 0 !important; } Link to comment
tuanphan Posted July 4 Share Posted July 4 (edited) 6 hours ago, ssjewelry said: Hello again @tuanphan! I created a "medium" version of the button so I can have it in a different color, but I'm not seeing the underline effect. Can you kindly help please? 🙂 https://www.susiesaltzman.com/ Here is the code I used: This code for Medium button but use Tertiary style But your button uses Primary Style So if you want to use that code, you need to change button to Tertiary style OR If you want to use Primary style, you need to change "tertiary" in the code to "primary" Edited July 4 by tuanphan Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
ssjewelry Posted July 5 Author Share Posted July 5 It worked! Thank you SOOOO 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