Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created April 27, 2022 09:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hivepress/1f2367c4f32040f71cdc586d1c45e5db to your computer and use it in GitHub Desktop.
Save hivepress/1f2367c4f32040f71cdc586d1c45e5db to your computer and use it in GitHub Desktop.
Change the columns number of listings on the single vendor page #hivepress #vendors
<?php
add_filter(
'hivepress/v1/templates/vendor_view_page',
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'listings' => [
'columns' => 3,
],
],
]
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment