Free Directory, Listing & Classifieds WordPress Plugin Support General HivePress Hide categories from left widget

Hide categories from left widget

  • Author
    Posts
  • vdrive6

    How to hide categories from left widget (under search bar)

    ihordeveloper

    You can try adding this code snippet to the child theme functions.php file:

    add_filter(
    	'hivepress/v1/forms/listing_filter',
    	function( $form ) {
    		unset( $form['fields']['_category'] );
    
    		return $form;
    	},
    	10000
    );
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.