Support » Plugin: Facebook Chat Plugin - Live Chat Plugin for WordPress » Add chat function to 1 page, not the entire site.

  • Resolved Jesse T.

    (@afknet)


    The recent version of this plugin I find extremely disappointing because it adds the chat function to the entire site automatically.

    I would prefer to not have this and only add the chat function on a “Contact Us” page.

    Could this be an option that is made available? Could even be with a shortcode. I really miss this from the previous version of the plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Facebook

    (@facebook)

    Hi,

    Thanks for the feedback. The Chat plugin is currently applied to all pages by default. You can however customize it to only showing it on specific pages that you want.

    In order to do that, you will have to leverage WordPress function “is_page” and only load the plugin only on pages that you want.

    https://developer.wordpress.org/reference/functions/is_page/

    Here are the steps:
    – Find the plugin file (facebook-messenger-customer-chat.php)
    – Edit Plugin
    – Add an if condition to indicate the page you want to show the plugin. https://prnt.sc/tjrtvc

    Hope it helps.

    Regards
    Facebook Team

    Thread Starter Jesse T.

    (@afknet)

    @facebook
    Thank you for the quick reply, but couldn’t this be something that is best to add as a function within the plugin? This way users do not need to edit the plugin’s code and chance breaking something on a future update?

    Plugin Author Facebook

    (@facebook)

    Hi,

    Thanks for the feedback. We will consider adding this customization in the future version of the plugin. In the meantime, the above steps should unblock you for now.

    Regards
    Facebook Team

    Thread Starter Jesse T.

    (@afknet)

    @facebook
    Wonderful! We have used your plugin on hundreds of sites for the last 2 years. It is one of our most used plugins!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add chat function to 1 page, not the entire site.’ is closed to new replies.