Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add custom CSS class to the HivePress page wrapper #hivepress #themes
<?php
add_filter(
'hivepress/v1/blocks/page',
function( $args ) {
return hivepress()->helper->merge_arrays(
$args,
[
'attributes' => [
'class' => [ 'my-custom-wrapper' ],
],
]
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment