I would like to inject some elements directly after the <body> tag.

Is that possible using only WordPress hooks?

7 Answers
7

Just add a custom hook to your template:

<body>
<?php do_action( 'wpse73370_custom_hook' ); ?>

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *