Support » Plugin: Simple Share Buttons Adder » Filter for Whatsapp icon display on desktop

  • Hi, according with the plugin indications, the Whatsapp icon only appears on mobile devices.

    However, many times Whatsapp is used via its web interface, so the Whastapp share button would be interesting to show in desktop as well.

    Checking the code I see the restriction in the function ssba_whatsapp (php/class-buttons.php file):

    if ( ! wp_is_mobile()) {
    return;
    }

    It would be possible, for next versions, to add here a filter to show the Whatsapp icon even for non-mobile context, something like this:

    if ( ! wp_is_mobile()) {
    if ( apply_filters( ‘hide_whatsapp_on_mobile’, true ) ) {
    return;
    }
    }

    Or even better, give a choice in the settings to allow this functionality 🙂

    Nothing else, many thanks for your plugin!

Viewing 1 replies (of 1 total)
  • Plugin Contributor ShareThis

    (@sharethis)

    Hi there,

    Thank you for reaching out!

    Currently, that option is not available. We will write this for us to review and see if we can support this social network for web versions. If you have any more questions, feel free to let us know.

    Best,

Viewing 1 replies (of 1 total)
  • The topic ‘Filter for Whatsapp icon display on desktop’ is closed to new replies.