I need to aquire the skill to wrap different hp-elements in a custom Div, but cannot seem to figure out how.
with this as my starting point:
add_filter(
'hivepress/v1/blocks/page',
function( $args ) {
return hivepress()->helper->merge_arrays(
$args,
[
'blocks' => [
'before' => [
'type' => 'content',
'content' => '<div class="my-custom-wrapper">',
'_order' => 1,
],
'after' => [
'type' => 'content',
'content' => '</div>',
'_order' => 1000,
],
],
]
);
}
);
I’ve tryed different hooks, without success, like this one:
add_filter(
'hivepress/v1/blocks/user_login_form',
function ($args) {
return hivepress()->helper->merge_arrays(
$args,
[
'blocks' => [
'before' => [
'type' => 'content',
'content' => '<div class="my-custom-wrapper">',
'_order' => 1,
],
'after' => [
'type' => 'content',
'content' => '</div>',
'_order' => 1000,
],
],
]
);
}
);
Besides that it doesn’t work, going through the folder structure confuses me a bit. I find the login_form several places. Like includes/blocks/class-user-login-form.php and includes/templates/class-user-login-page.php
also, theres the /forms/user_login hook.
May I get some assistance sorting this out? Thank you