Live Filter – use Dropdown type on mobile devices

If you want to use another live filter type in desktop and tablet devices, but use the Dropdown type on mobile devices, please add this code to file functions.php in the theme’s folder (or install this plugin Code Snippets then add this code to the “Code” textarea):

// Content Views Pro - Use dropdown for Live Filter on mobile devices. @since >
add_filter( 'pt_cv_lf_type', 'cvp_theme_lf_type_mobile', 100, 2 );
function cvp_theme_lf_type_mobile( $args, $name ) {
	global $pt_cv_id;
	if ( $pt_cv_id === 'VIEW_ID' && $args != 'search_field' && PT_CV_Functions_Pro::check_device( 'mobile' ) ) {
		$args = 'dropdown';
	return $args;

(please replace VIEW_ID with ID of your View)

Best regards,

Get Content Views Now!