• Is there any way to disable Fb customer chat WordPress plugin from loading on a particular WordPress page. I want complete code that I can place in the footer to avoid loading FB customer chat files and requests.

    I tried hiding the chatbox bus using CSS but I want to stop the chatbox files from loading too.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m also struggling with this. Any help would be greatly appreciated!

    Hi, i’m having the same issue. i don’t want the plugin to pop up on all the pages. any suggestions?

    @mukeshkumar1995 i was wondering if you have found a solution yourself?

    I would also be interested to know the answer to this problem!

    add this to your Css – the plugin will still load but this will hide it on the page.

    .fb_dialog_content {
    background: #fff;
    color: #373737;
    display: none;
    }
    .fb_customer_chat_bubble_animated_no_badge {
    box-shadow: initial;
    transition: box-shadow 150ms linear;
    }

    .fb_customer_chat_bubble_animated_no_badge {
    box-shadow: 0 0 0 rgba(0, 0, 0, .15) !Important;
    transition: box-shadow 150ms linear;
    }

    Honestly it’s quite weak to hide the Messenger button via CSS.
    I found this way for display Messenger only on product pages:

    add_filter( 'option_fbmcc_pageID', 'du_hide_facebook_chat', 1000, 2 );
    
    function du_hide_facebook_chat( $value, $name )
    {
    	global $post;
    	
    	if( $post->post_type === 'product' )
    		return $value;
    		
    	return '';
    }

    Obviously it could be expanded with conditions that better reflect your needs.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Disabling Fb Customer chat files to load on a single Page’ is closed to new replies.