- This topic has 2 replies, 2 voices, and was last updated 9 years, 9 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Disable for mobiles (not tablets)?
Hi,
This isn’t an important point, but is it possible to disable S&F on mobiles? Now tablets, but mobiles?
I was browsing other posts and found code that I assume goes in functions.php which someone was using in order to switch filters for mobiles. Is it possible to adapt it to disable S&F for mobiles?
The code was:
function my_filter_switcher() {
if ( wp_is_mobile() ) {
echo do_shortcode( ‘[searchandfilter id=”289″]’ );
} else {
echo do_shortcode( ‘[searchandfilter id=”102″]’ );
}
}
Brian