ElineBredesen Posted June 18, 2020 Share Posted June 18, 2020 Hello, I am working on a website for a costumer, and he wants to have his number (clickable) in the navigation menu. I know that I can make a link, and add it to the menu, but I want it to stand more out than the rest (maybe bold), and to display beside the blue button (Prøv gratis). Is this possible somehow? Link to comment
Beyondspace Posted June 18, 2020 Share Posted June 18, 2020 Yes, you can create a link with the phone number and make custom css to change its stylesheet. Can you site be accessible? Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
ElineBredesen Posted June 18, 2020 Author Share Posted June 18, 2020 Hello! Its not public yet, but I have a password on it. Can I send you the link and passord somewhere else? 🙂 Link to comment
ElineBredesen Posted June 18, 2020 Author Share Posted June 18, 2020 <style> .header-nav-item a[href="tel:+4757721555"] { display: none; } .header-nav-item a[href="tel:+4757721555"].moved { display: block; font-size: 1.5em; font-weight: 600; color: #54bce0; } .header-actions-action--cta { margin-left: 2em; } </style> <script> document.addEventListener('DOMContentLoaded', function() { document.querySelector(".header-actions--right").insertBefore(document.querySelector('[href="tel:+4757721555"]').parentNode, document.querySelector(".header-actions-action--cta")) document.querySelector('[href="tel:+4757721555"]').classList.add("moved") }, false); </script> This worked!! Beyondspace 1 Link to comment
ElineBredesen Posted June 22, 2020 Author Share Posted June 22, 2020 Is it possible to add a phone icon next to the number? 🙂 Link to comment
Beyondspace Posted June 22, 2020 Share Posted June 22, 2020 51 minutes ago, ElineBredesen said: Is it possible to add a phone icon next to the number? 🙂 okie, I will use a temp image you can change later Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
ElineBredesen Posted June 22, 2020 Author Share Posted June 22, 2020 Thank you, do you have the code? 🙂 Link to comment
Beyondspace Posted June 22, 2020 Share Posted June 22, 2020 1 hour ago, ElineBredesen said: Thank you, do you have the code? 🙂 <style> .header-nav-item a[href="tel:+4757721555"] { display: none; } .header-nav-item a[href="tel:+4757721555"].moved { display: block; font-size: 1.5em; font-weight: 600; color: #54bce0; } .header-actions-action--cta { margin-left: 2em; } .header-nav-item a[href="tel:+4757721555"]:after { background: url(https://img.icons8.com/metro/50/000000/phone.png); background-size: contain; content: ''; width: 25px; height: 25px; position: absolute; top: 50%; transform: translateY(-50%); left: -30px; } </style> <script> document.addEventListener('DOMContentLoaded', function() { document.querySelector(".header-actions--right").insertBefore(document.querySelector('[href="tel:+4757721555"]').parentNode, document.querySelector(".header-actions-action--cta")) document.querySelector('[href="tel:+4757721555"]').classList.add("moved") }, false); </script> You can replace the icon as you wish Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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