Shuffle Filter – use Dropdown type on mobile devices

Dropdown is the most compact type to show shuffle filters, especially on mobile devices.
If you want to use another shuffle 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 Shuffle Filter in mobile devices
add_filter( 'pt_cv_sfilter_type', 'cvp_theme_sfilter_type_mobile', 100, 1 );
function cvp_theme_sfilter_type_mobile( $args ) {

	if ( method_exists( 'PT_CV_Functions_Pro', 'check_device' ) && PT_CV_Functions_Pro::check_device( 'mobile' ) ) {
		$args = 'vertical-dropdown';
	}

	return $args;
}

Best regards,