Sidebar : disable sliding hover effect

You will notice that the WP Customer Area is hiding when you reduce the screen size to tablet sizes. You can disable this effect by just using this simple code snippet into a WP plugin or into your theme functions.php file.

since: 7.2.0

if ( !function_exists('custom_cuar_disable_sliding_sidebar'))
{
	/**
	 * Add a body class to disable hover effect on sidebar
	 * @param $classes
	 * @return array
	 */
	function custom_cuar_disable_sliding_sidebar($classes)
	{
		$classes[] = 'disable-tray-rescale';
		return $classes;
	}

	add_filter('body_class', 'custom_cuar_disable_sliding_sidebar');
}