pixies1 Posted April 1, 2021 Share Posted April 1, 2021 Site URL: https://typeaprofessionals.com Hello Squarespace community! I'm redoing my site using the Brine template (not yet published, current site still visible). I want to add a line that looks like this, but with the phone number as a clickable link: Call or text: 805-500-TYPE I need to do this in a code block rather than adding a phone link the normal way (long story). I have this line of code that makes the colors look right, but I don't know where to put the href=“tel:805-500-8973” to make the number clickable: Call or text: <p1 style="color:#BABC16;">805-500-TYPE</p1> Thank you! Link to comment
pixies1 Posted April 1, 2021 Author Share Posted April 1, 2021 Or if it's easier/cleaner, here's the CSS I added to hide the phone number in my primary navigation header from the mobile navigation menu. This CSS does this correctly, but then it also hides the phone number everywhere else on the site, which I do not want it to do. //hide phone number in mobile nav// @media screen and (max-width: 640px) { [href="tel:+18055008973"]{ display: none; } } Link to comment
ErikaT Posted April 1, 2021 Share Posted April 1, 2021 Hi pixies, the html would be: <p>Call or text: <a href="tel:805-500-8973" style="color:#BABC16;">805-500-8973</a></p> pixies1 1 Link to comment
pixies1 Posted April 1, 2021 Author Share Posted April 1, 2021 Works perfectly now, thank you so much! ErikaT 1 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