I tried to hide the filter sidebar on the „All Listings“ Page, so that i have more space for the Listings to show.
But when i get it done with CSS, it also hides the right sidebar for the attributes on the listing detail (view) page.
I tried this CSS
/* Disable Sidebar */
.hp-page__sidebar.hp-col-sm-4.hp-col-xs-12.site-sidebar, .hp-widget--listing-filter{
display: none;
}
.hp-row.hp-listing.hplisting--view-page .hp-page__sidebar.hp-col-sm-4.hp-col-xs-12.site-sidebar{
display: all
}
So i tried the PHP Snippet to unset the category Filter, but the space on the right is still blocked from the empty DIV. The same, when i tried the Snippet to move the filters to the top of the page.
I feel, i am near to the solution, its just a little piece missing?
add_filter(
'hivepress/v1/forms/listing_filter',
function( $form ) {
unset($form['fields']['_category']);
unset($form['fields']['_tags']);
unset($form['fields']['_attributes']);
return $form;
},
1000
);