Hello. I want to completely remove the filter that is on the left side. In functions.php I add the following code:
add_filter(
'hivepress/v1/templates/listings_view_page',
function ($template){
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'listing_filter_modal' => [
'type' => 'content',
],
],
]
);
},
1000
);
I go to site.com/listing-category/my-category and see an empty space instead of a filter. This empty space should not be there. There should be ads in its place.