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

    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!!

    #1210458

    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

    #1210493

    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

    #1210892

    Hi,

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.