Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #251647

    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

    #251775

    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

    #251778

    Thanks!

    One day I will find a course where I can learn how to properly work with functions…

    I appreciate the help!

    #251783

    You are welcome, glad we could help :)

    Regards,
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add Content to Header’ is closed to new replies.