Created
April 27, 2022 09:11
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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