Skip to content

Instantly share code, notes, and snippets.

@hivepress
hivepress / functions.php
Created July 23, 2022 23:16
Add custom HTML wrapper to HivePress pages #hivepress #themes
<?php
add_filter(
'hivepress/v1/blocks/page',
function( $args ) {
return hivepress()->helper->merge_arrays(
$args,
[
'blocks' => [
'before' => [
'type' => 'content',
@hivepress
hivepress / functions.php
Last active December 19, 2023 08:31
Hide the images field in the listing form #hivepress #listings
<?php
add_filter(
'hivepress/v1/forms/listing_update',
function( $form ) {
unset($form['fields']['images']);
return $form;
},
1000
);
@hivepress
hivepress / style.css
Created April 26, 2022 16:22
Hide the vendor registration date #hivepress #vendors
.hp-vendor--view-block .hp-vendor__registered-date,
.hp-vendor--view-page .hp-vendor__registered-date {
display: none;
}