to change the number of columns for the categorie’s view page is just:
add_filter(
'hivepress/v1/templates/listing_categories_view_page',
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'listing_categories' => [
'columns' => 2, // Just change columns number by your requirements.
],
],
]
);
},
1000
);
but how to change the number of columns for a specific category?
add_filter(
'hivepress/v1/templates/[__________?]',
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'[__________?]' => [
'columns' => 2, // Just change columns number by your requirements.
],
],
]
);
},
1000
);