Ewald_Rist Posted November 24, 2021 Share Posted November 24, 2021 Hi, Im currently working on my website. Its still in its development stages so it isn't live yet. I have a question that I would appreciate some help with. My header is very standard, with a pages on the left, logo in the middle and button on the right ( as shown below with the attached images ) Im attempting to style the "lets chat" button on the right to look like the linked page on the left. Initially it looks fine: however when it hovers it shows a black background: Would anyone be able to help me style this button so that it behaves the same as the linked page on the left, where upon hover the background doesn't change, only a line appears under the text. Many thanks in advance! Link to comment
Beyondspace Posted November 24, 2021 Share Posted November 24, 2021 24 minutes ago, Ewald_Rist said: Hi, Im currently working on my website. Its still in its development stages so it isn't live yet. I have a question that I would appreciate some help with. My header is very standard, with a pages on the left, logo in the middle and button on the right ( as shown below with the attached images ) Im attempting to style the "lets chat" button on the right to look like the linked page on the left. Initially it looks fine: however when it hovers it shows a black background: Would anyone be able to help me style this button so that it behaves the same as the linked page on the left, where upon hover the background doesn't change, only a line appears under the text. Many thanks in advance! Can you share your site with the protected password to check your issue? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Ewald_Rist Posted November 24, 2021 Author Share Posted November 24, 2021 Hi! My website url is: riststudio.com the password is: welcome Link to comment
Beyondspace Posted November 24, 2021 Share Posted November 24, 2021 2 hours ago, Ewald_Rist said: Hi! My website url is: riststudio.com the password is: welcome If you want to set style for the 'lets chat' button, try adding to Home > Design > Custom Css .header-actions-action [href*="contact"] { /*style the button*/ padding: 8px 16px; } .header-actions-action [href*="contact"]:hover:before { /*style for the hover state*/ border-radius: 10px !important; } Let me know how it works on your site Press 👍 or mark this answer as solution to help another one too BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Ewald_Rist Posted November 24, 2021 Author Share Posted November 24, 2021 Hi! Thanks for your response - it's greatly appreciated! I've imputed the code into the custom Css section of my website, however upon hover the the button still shows a black back ground. If possible I would like the button to remain the same on hover ( no background changes ), with the edition of a line appearing underneath. For example: Above is how the about me navigation looks on hover. Many Thanks, Ewald Link to comment
Solution Beyondspace Posted November 24, 2021 Solution Share Posted November 24, 2021 (edited) 46 minutes ago, Ewald_Rist said: Hi! Thanks for your response - it's greatly appreciated! I've imputed the code into the custom Css section of my website, however upon hover the the button still shows a black back ground. If possible I would like the button to remain the same on hover ( no background changes ), with the edition of a line appearing underneath. For example: Above is how the about me navigation looks on hover. Many Thanks, Ewald Remove my previous codes and replace it with the following one .primary-button-shape-pill .btn[href*="contact"]:hover { color: #000 !important; } .header-actions-action [href*="contact"]:after { content: ""; position: absolute; width: 100%; height: 1px; left: 0; bottom: 0.1em; background-color: currentColor; transform: scalex(0); transform-origin: right; transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1); } .header-actions-action [href*="contact"]:before { content: none !important; } .header-actions-action [href*="contact"]:hover:after { transform: scalex(1); transform-origin: left; } Let me know how it works on your site Press 👍 or mark this answer as solution to help another one too Edited November 24, 2021 by bangank36 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Ewald_Rist Posted November 25, 2021 Author Share Posted November 25, 2021 Hi! Thanks - This worked! I have one more question that you could maybe help me figure out. On the mobile view the menu displays as follows: How do I make the 'about me' and 'lets chat' links the same size and display under each other? Many Thanks, Ewald Link to comment
Beyondspace Posted November 25, 2021 Share Posted November 25, 2021 8 hours ago, Ewald_Rist said: Hi! Thanks - This worked! I have one more question that you could maybe help me figure out. On the mobile view the menu displays as follows: How do I make the 'about me' and 'lets chat' links the same size and display under each other? Many Thanks, Ewald You can try @media only screen and (max-width: 767px) { .header-menu-nav-folder-content { display: block; flex-grow: 0; } .header-menu-nav-list [data-folder="root"] { justify-content: center; } .header-menu-cta a { font-size: 8.5vmin; } } Hope that it can help your BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Ewald_Rist Posted November 25, 2021 Author Share Posted November 25, 2021 Thanks for your help! The contents of my mobile menu are arranged properly. However the 'lets chat' link doesn't have an underline like the 'about me' link. Is there some more code I can input to make them the same. You have been a great help so far! Many thanks, Ewald Link to comment
tuanphan Posted November 28, 2021 Share Posted November 28, 2021 On 11/26/2021 at 12:07 AM, Ewald_Rist said: Thanks for your help! The contents of my mobile menu are arranged properly. However the 'lets chat' link doesn't have an underline like the 'about me' link. Is there some more code I can input to make them the same. You have been a great help so far! Many thanks, Ewald Do you still need help? You mean under let's chat when users on let's chat page? 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment