KyleKeigan Posted December 21, 2023 Share Posted December 21, 2023 @tuanphan Hi! I've uploaded the following code to create a multi-button section on this page: https://sunfish-turbot-cxel.squarespace.com/artwork Is there a way to make the background of the button black when you're actively on the page that corresponds to the button? Code: .multi-button { display: flex; flex-wrap: wrap; gap: 15px; &.center { justify-content: center; } &.right { justify-content: flex-end; } .sqs-edit-mode-active .fluid-engine & .sqs-block-button-container { width: unset; } } Thank you!!! Kyle Link to comment
Solution tuanphan Posted December 22, 2023 Solution Share Posted December 22, 2023 https://sunfish-turbot-cxel.squarespace.com/artwork Edit this page > Add a Code Block > paste this code <style> div.multi-button a[href="/artwork"] { background-color: black !important; color: white !important; } </style> With this page https://sunfish-turbot-cxel.squarespace.com/artwork-light Add a Code Block <style> div.multi-button a[href="/artwork-light"] { background-color: black !important; color: white !important; } </style> With this page Add a Code Block https://sunfish-turbot-cxel.squarespace.com/artwork-dark <style> div.multi-button a[href="/artwork-dark"] { background-color: black !important; color: white !important; } </style> With this page https://sunfish-turbot-cxel.squarespace.com/artwork-color Add a Code Block <style> div.multi-button a[href="/artwork-color"] { background-color: black !important; color: white !important; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
KyleKeigan Posted December 22, 2023 Author Share Posted December 22, 2023 As always, THANK YOU! -Kyle tuanphan 1 Link to comment
KyleKeigan Posted December 26, 2023 Author Share Posted December 26, 2023 @tuanphan One last question 🙂 Currently the only hotspot / clickable area is the text. Is there a way to change this multi-button code to make each pill shape clickable? Thanks! Best, Kyle Link to comment
tuanphan Posted December 28, 2023 Share Posted December 28, 2023 On 12/27/2023 at 5:01 AM, KyleKeigan said: @tuanphan One last question 🙂 Currently the only hotspot / clickable area is the text. Is there a way to change this multi-button code to make each pill shape clickable? Thanks! Best, Kyle I tried disable cursor code on my browser and I see Whole button already clickable. You try disable your custom cursor code, you will see this. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) 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