Filter: bricks/render_header
Filter: bricks/render_header
Section titled “Filter: bricks/render_header”Filters the rendered HTML of the Bricks header template. This allows you to wrap the header in custom markup or modify its output before it is echoed to the page.
Parameters
Section titled “Parameters”$header_html(string): The rendered HTML of the header.
Example usage
Section titled “Example usage”add_filter( 'bricks/render_header', function( $header_html ) { // Example: Add a notification bar before the header $notification = '<div class="notification-bar">Welcome!</div>';
return $notification . $header_html;} ); Was this page helpful?