When viewing the Regular Events page on an iPhone or iPad, any phone numbers in the text are automatically rendered as links by the device so that it can be called by tapping the link. That’s all well and good but when the phone number is in white on a dark background, iOS changes the phone number to black so it can’t be seen!
When viewing on a desktop (PC or Mac) or an Android device - all is well and no changes are made.
I’ve determined that it’s not theme related as the same happens when the page is published using an inbuilt theme such as Realmac Artful or others. I have also tried using different stacks - Styled Text, Markdown and other text stacks.
I’m assuming someone must have come across this before and would love to know what I can do to force iOS devices to keep the text for phone numbers white or at least a light viewable colour.
Thank you I’ll give this a go - The theme controls the link colours and automatically inverts dependant on whether text is in light or dark background - I don’t change text colour manually.
Could you advise the code needed to force a colour on the link too? (Sorry I have virtually zero coding knowledge)
Thank you Neil, have sorted the gap but will give the rest a go later when I can sit down and give it some more time.
I assume I just add the CSS to the HTML Code tab for the page so it affects all instances of ‘tel1’ on the page rather than in the stack dialog box HTML (CSS Classes). That way anything with class=“tel1” will be formatted by the a.tel1 CSS code? Is that right?
I’m hoping to get my head around ‘classes’ and other such useful stuff to effect global changes soon, just need to find a nice simple YouTube video to explain it to me. I think I’ve just grasped the difference between div and span!
Ah now that has worked but only on one of the three items (Family Games Night). Is it possible to not have it go black on hover but the grey we were trying for previously?
For the others, I’ll give you the numbers you need to add to change the colours. Where its says “stacks_in_60”, you need to add more lines of CSS but just change “60” to the numbers below.
#stacks_in_60_page16.aspen_split a.tel1 {color: white !important;} #stacks_in_60_page16.aspen_split a.tel1:hover {color: #fff !important;}
etc.
I’m guessing that the 60, 144 and 239 are line numbers in the HTML file for the page or something like that? Just trying to work this out in case I need to do the same again later on another page.
For my own education - would adding those two lines to the Settings > Code > CSS section rather than the Page CSS then style any tel1 classes across the whole site?