You can add custom code or wrappers before componentz header wrapper.
Example of adding custom wrapper with content before componentz header wrapper:
add_action( 'componentz/theme/before_header_wrapper', 'my_custom_wrapper' ); /** * My Custom Wrapper */ function my_custom_wrapper() { echo '<div class="my-custom-wrapper">'; echo esc_html__( 'My Custom Content', 'textdomain' ); echo '</div>'; }
The above code will produce next HTML structure:
<!DOCTYPE html> <html> <head> <title>Page title</title> </head> <body> <div id="componentz-wrapper"> <!-- Your Custom Wrapper --> <div class="my-custom-wrapper"> My Custom Content </div><!-- Your Custom Wrapper End --> <header id="componentz-header"> </header> <main id="content" class="site-content" role="main"> </main> <footer id="componentz-footer"> </footer> </div> </body> </html>