• Resolved JayBraver

    (@jaybraver)


    We want to chat with clients straight from their cell phone. Our site is littered with hot linked phone numbers that can be clicked to call. What we can’t seem to do is get a chat going directly with a cell phone number. Help!

Viewing 1 replies (of 1 total)
  • Plugin Author David Sword

    (@davidsword)

    What code are you using to “hot link” your phone number links?

    You can always modify this plugins printed buttons with some simple Javascript:

    (function () {
        const callNowButton = document.querySelector('#phone_now');
        // console.log(callNowButton);
        // do somthing with callNowButton
    } ());

    you can inject that Javascript with a plugin that allows adding JS to wp_footer, or you can do it via your theme/plugin with:

    add_action('wp_footer',function(){
        ?>
        <script type="text/javascript">
        // the js here
        </script>
        <?php
    });
    • This reply was modified 6 years, 10 months ago by David Sword.
Viewing 1 replies (of 1 total)
  • The topic ‘Feature Request: Text Now’ is closed to new replies.