Hi,
I am trying to add a section above the header and this is the code i added in the enfold-child functions.php file. Please suggest if I should be using a different hook or any changes to this code.
add_action( 'ava_main_header', 'add_libsyn_header' );
function add_libsyn_header($player) {
$player = "<div style='display: none;'>Libsyn</div>";
return $player;
}
Thanks!!
Hey WellerSmithDesign,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
Victoria
this will work but that hook goes as first child in header_main.
Where in the DOM you like to insert that html?
add_action('ava_main_header' , 'add_libsyn_header');
function add_libsyn_header() {
?>
<div style="display: none">Libsyn</div>
<?php
}
maybe the ava_after_body_opening_tag is a good place for you? otherwise tell us where you like to place it exactly.
or to have a child-theme header.php with that entry directly after wrap_all opens