Hi – what is the best practice to add content to the header?
Should I copy the header.php file over to my child theme and add <span class=”stuff”>some stuff</span> above the <body id=”top”…> or is there a better way to accomplish adding text and images in there?
Thanks!
John
Hi John!
Add this to your child theme functions.php:
function custom_head_func(){
echo "<div class='custom_content'>hello world</div>";
}
add_action('ava_main_header', 'custom_head_func');
Change as needed.
Cheers!
Josue
Thanks!
One day I will find a course where I can learn how to properly work with functions…
I appreciate the help!
You are welcome, glad we could help :)
Regards,
Josue