Free Directory, Listing & Classifieds WordPress Plugin Support General HivePress Hide filter button in Listing sidebar

Hide filter button in Listing sidebar

  • Author
    Posts
  • vdrive6

    How to hide filter button on listings page sidebar?

    ihordeveloper

    Try using this CSS code snippet:

    .hp-form--listing-filter .hp-form__button { display:none; }

    carolinalallana

    Hi, how can I turn category page in a fullwith page?

    ihordeveloper

    If you mean hiding the entire sidebar, it’s possible with custom CSS snippets, but please note that this will make a few extensions useless, for example Geolocation extension displays a map in the sidebar section.

    carolinalallana

    Thanks for answering!
    I used the code above to hide the filter (I won’t use geolocation), but still have the white space of the sidebar on page. I wonder if is it possible to turn the category listing page to a fullwidth page

    ihordeveloper

    You can try using this CSS snippet to hide the sidebar:

    .tax-hp_listing_category .hp-page__sidebar {display:none}
    .tax-hp_listing_category .hp-page__content {flex-basis:100%; max-width:100%}

    But further customizations may be required, e.g. changing the number of columns https://hivepress.io/support/topic/number-of-columns-in-listings-page/#post-2988

    carolinalallana

    Thank you so much for this support. It worked!

    So, I applied the next code to customize the number of columns:

    add_filter(
    	'hivepress/v1/templates/listings_view_page',
    	function( $template ) {
    		return hivepress()->helper->merge_trees(
    			$template,
    			[
    				'blocks' => [
    					'listings' => [
    						'columns' => 4,
    					],
    				],
    			]
    		);
    	}
    );

    But didn’t worked and still got the category listing page with two big columns. I don’t know what am I doing wrong…

    ihordeveloper

    Please make sure that you added it as a PHP, not CSS snippet. You can add it using this plugin https://wordpress.org/plugins/code-snippets/

    carolinalallana

    Shame of me, that was my mistake. It worked wonderful

    Thanks for the great support!

Viewing 9 posts - 1 through 9 (of 9 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.