Skip to content

Snippet: Correct Way Of Adding Extra Content To Header

// Add custom content to header
function my_custom_header_content() { ?>
	<div class="my-custom-class clear">
		Some Text, could be anything though
	</div>
<?php }
add_action( 'wpex_hook_header_inner', 'my_custom_header_content', 999 );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top