Thanks for the reply, Andrii.
I’ve noticed this page, in particular, seems to get mentioned a lot when users are trying to customise HivePress.
I have watched the template customisation videos and followed along step-by-step. However, the page shown after you make a search (Listings? / Listings View Page?) was proving difficult to override and actually display what I wanted through using using HivePress > Templates
.
So, I ended up using snippets instead, and I’ve finally managed to achieve what I wanted by using this:
add_filter(
'hivepress/v1/templates/listings_view_page',
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'page_header' => [
'blocks' => [
'custom-block-name' => [
'type' => 'content',
'content' => 'custom code here',
'_order' => 0,
],
],
],
],
]
);
}
);
I could have added more customisation that I attempted, but to be on the safer side; I got things to show using the method above, then just made them look nice using CSS.
I’m sure others will find this useful, so feel free to rename the topic.
I find the terminology used in HivePress quite confusing at times, so I expect others will as well. In case other people are searching for ways to do this, hopefully, Google picks up on some of these keywords: “search page results”, “results page”, “search results page”, “search page”, “after searching”, “after making a search”, “after you search”, “when you search”.