Create a Call button on mobile site but not desktop

Community Forums Forums General Discussion Create a Call button on mobile site but not desktop

This topic is: not resolved

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  SoZo 1 year, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13637

    jz9521
    Participant

    Is there a way to create a button that appears on the mobile site (but not the desktop version) that when clicked calls a phone #? If so, how? I don’t want the button to appear on the desktop site b/c most people don’t dial from the desktop. It is ok if just the phone number appears on the dekstop but I don’t want a button to appear on the desktop b/c the user might attempt to click it and it will do nothing from the desktop. Thanks.
    I use the executive theme 2.0 (most recent version) and the most recent version of WP. My site is http://www.justinziegler.net

    #14687

    SoZo
    Moderator
    Post count: 1573

    You could hide it with “display: none;” in the default style rule and then add a rule to the responsive sections with “display: inline(or block);” Or you could add it with PHP conditional.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.