How do I disable the blue hyper links that appear on an iPad for days of the week, times and street addresses? I was able to do this for the phone number by adding a custom attribute:
a [href^=tel] { color: inherit; text-decoration: none; }
I tried doing the same for date and address by changing href^=tel to href^=date
I do not code. I found the help with the phone number by searching online but could not find anything to help with the date and address.
Of course, you will need to be viewing it on an iPad (or perhaps it does so on other tablets as well) to see the issue. If you scroll down to the bottom of the page you will see DAYS & HOURS, LOCATIONS, and CONTACT. Below the headings there is Monday-Friday with the hours listed. The text below the heading is the default blue hyperlink that allows a user to tap it and open Calendar. I do not want this to be a hyperlink and want the text to be gray not blue. The same for the business address. I was able to accomplish this with the phone number only. This appears on my iPad mini and not my iPhone.
I am not exactly sure what you are trying to achieve but from my own testing your costume attribute seems to be unnecessary. By adding a class and styling to the link block you can get the same result.
I took a look at your design and my own recreation and couldn’t recreate what you describe.
Is this still a problem or is there any other information you can give me?
Thank you for your response. I deleted the custom attributes for the hours and address and then added a class to the blocks of each. Unfortunately when viewed on my iPad the MONDAY-FRIDAY 9:00 am- 9:00 pm continue to be blue hyperlinks.
Hi @stuzz, thanks for your update. I did a little testing on this, on iphone and ipad, but I am unable to reproduce the blue text links you mentioned. Could you let us know, what model of ipad are you using, and what version of iOS? That way we can test with exact same device
I just realized another issue with this site on the iPad and would greatly appreciate it if you could help. The nav bar displays in portrait mode but the button is not appearing. In landscape mode the whole nav bar is missing.
I run into this all the time because iOS sets the link color to blue; especially is this the case for phone numbers.
Here’s the fix…
Include CSS code in your site settings that looks somewhat like this. You’ll need to change the class to what fits your site; you’ll need to set !important though so iOS doesn’t override it. And change the color to whatever you need.
.footer-contact-block a {
color: #e4e8eb !important;
}
You can also add meta-tags in your Dashboard > Custom Code in the Head Section to get rid of linked phone numbers: <meta name="format-detection" content="telephone=no">