Support » Plugin: Quick Chat » How do you embed this to the page?

Viewing 4 replies - 1 through 4 (of 4 total)
  • i want to add this on my main homepage not as a side widget!

    You can remove the widget from the sidebar by putting the following code in your functions.php file in the directory of the theme you’re using:

    add_filter('widget_display_callback', function($instance, $widget, $args){
    	if ( 'quick-chat-widget' == $widget->id_base ) return false;
    	return $instance;
    }, 0, 3);

    If you’re using the twentyfourteen theme, you would probaby edit the file that is located here:


    This code fragment registers a widget_display_callback, passing a function in-line. The 0 passed at the end of the add_filter call makes this method run early in the list of widget_display_callback hooks (i.e. it probably runs first). If the specified function attached to this hook (the “in-line” function) returns false, the widget is not rendered.

    If we did not check the widget, none of the plugins would be rendered (things like recent posts, and lists of posts in general for example).

    If you don’t want it as a sidebar, you simply don’t put Quick Chat in your sidebar. All of that code above is unnecessary.

    To put it in a page is very simple, and is explained in the FAQ, clearly listed in the tab at the top of the Quick Chat plugin page:

    You can do that by placing [quick-chat] (including [] brackets) inside post or page where you want your chat to appear.

    There are also quite a number of options you can choose with this code, which are listed in the FAQ.


    Thanks for the correction. The less code we need in the functions.php, the better.

    It was probably my inexperience with WordPress.

    We love this chat client at our site. We’re still learning about it, but my admins and users like it.

    I may add some custom code to it at some point for features our crew would like added. The code is pretty straight forward and well organized (how I missed the simplicity of your correction above, I don’t know).

    Thanks again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do you embed this to the page?’ is closed to new replies.