@ ssnoomann
re: what I was actually meaning was I don’t want the Locations image and link in the category grid above the results to show, not disable the category entirely.
As long as the entries assigned to the “Locations” category are also assigned to another still accessible category they will still be listed as a result. So the net result would be that the Locations category would not be visible as an option but entries would still be listed if in other categories. Hope that makes sense.
The CSS was works too :)
re: Is there any way to only have the grid view show on the main directory page? On mobile, you have to scroll quite a ways down to see the actual listings.
Not tested but a code snippet like the following might be work:
add_action( 'cn_action_list_before', 'cn_cat_before_root_only', 8 );
function cn_cat_before_root_only() {
if ( wp_is_mobile() && cnQuery::get( 'cn-cat' ) ) {
remove_filter( 'cn_action_list_before', array( 'Connections_Categories', 'viewBefore' ), 9 );
}
}
What should happen, on mobile, if a category is selected then the action that displays the category list is removed.
Hope that helps!