1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Dsiable tel tag

Discussion in 'HTML & Website Design' started by ryderlow, Jan 31, 2018.

  1. #1
    Is it possible to disable tel tag for desktops? The reason I am asking is because it behaves differently of different OS. Right now I am having issue with one my clients website, this page https://www.plumbwize.ca/plumber-burlington/. On Windows, nothing happens while clicking on the phone number. And on Mac, it opens FaceTime. I don't want the button to open anything while on desktop. It should only function while mobile browsers. Is it possible to implement this?
    SEMrush
     
    ryderlow, Jan 31, 2018 IP
    SEMrush
  2. Blizzardofozz

    Blizzardofozz Well-Known Member

    Messages:
    132
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    118
    #2
    This is a problem that can be resolved by JavaScript. I suggest putting an id on this element, then get the element by id, then remove the link tag. Condition - screen size larger than for a mobile device.
     
    Blizzardofozz, Feb 20, 2018 IP
  3. Mark Lovett

    Mark Lovett Greenhorn

    Messages:
    10
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    21
    #3
    Did you see this code from a previous sitepoint post:

    @media screen and (min-width: 768px) { a[href^='tel:'] { display: none; } }
     
    Mark Lovett, Feb 26, 2018 IP