The default shows two columns. Am I able to increase this to 4 on the listings page, or is this only available when adding the listings block to a regular page?
Hi @Knode,
I haven’t tested this snippet myself, but HivePress AI suggested this:
add_filter(
'hivepress/v1/templates/listings_view_page',
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'listings' => [
'columns' => 4,
],
],
]
);
}
);
You can use a plugin like Code Snippets to easily add the PHP snippet.
Alternatively, you can override the template, rebuild the default layout, and customize the number of columns. This allows you to completely customize the page if you want to make further changes, too.
I hope this helps!
Edit: see this topic, re: confirmed solution & changes for mobile, too.
Cheers,
Chris ![]()
2 Likes
That worked! thank you!
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.