Hi!
I would like to move the vendor/host field from the right sidebar (Primary page area) to the left side (Secondary page area) between the Location and the Reviews section.
Could you please provide a code to do so?
Thank you
Hi!
I would like to move the vendor/host field from the right sidebar (Primary page area) to the left side (Secondary page area) between the Location and the Reviews section.
Could you please provide a code to do so?
Thank you
Please try this PHP snippet
add_filter(
'hivepress/v1/templates/listing_view_page',
function( $template ) {
$template = hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'page_content' => [
'blocks' => [
'listing_vendor' => [
'type' => 'template',
'template' => 'vendor_view_block',
'_label' => 'Host',
'_order' => 91,
]
],
],
'page_sidebar' => [
'blocks' => [
'listing_vendor' => [
'type' => 'content',
],
],
],
],
]
);
return $template;
},
1000
);
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.