Hi there,
I was wondering how to add a button to the cart in the header. I found the description below for a custom snippet, do I need to add anything here?
add_filter(
'hivepress/v1/templates/site_header_block',
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'site_header_menu' => [
'blocks' => [
'custom_name_here' => [
'type' => 'content',
'content' => 'custom HTML here',
'_order' => 123,
],
],
],
],
]
);
}
);