PHP WordPress
WordPress - Adding code to Header or Footer
610 days agoThis code can be placed in your functions.php file or in a separate file in the mu-plugins folder.
<?php
add_action('wp_head', 'hoog_header_code');
function hoog_header_code() {
?>
<div>Code Here</div>
<?php
}
add_action('wp_footer', 'hoog_footer_code');
function hoog_footer_code() {
?>
<div>Code Here</div>
<?php
}
