Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #299376

    Hello,

    I am really loving this theme and what it has allowed me to achieve!!

    I would like to build a NewYorker.com menu on the top of all pages on my site, and I wanted to know in which file and above which line I would need to enter the HTML? My goal is for the menu to be located in the same place where the wpadminbar is located and I am particularly interested in having the top of the background photo still visible so that I will maintain the space imagery around the body.

    I will be adding <div id=”navbar” class=”navbar myfixed”></div> to build this with the myStickymenuCan plugin. Can you please let me know where in the theme’s code I need to go to add this line of code to begin building my sticky responsive adjustable menu?

    Thanks!

    #299432

    Hey!

    There are some hooks that let you insert content in the header area, try with something like this in your theme / child theme functions.php:

    function add_stuff_to_header_func() {
    	?>
    	HTML_CONTENT_HERE
    	<?php
    }
    add_action('ava_after_main_menu', 'add_stuff_to_header_func');

    That will add content inside the header container, if you want it outside, use:

    function add_stuff_to_header_func() {
    	?>
    	HTML_CONTENT_HERE
    	<?php
    }
    add_action('ava_main_header', 'add_stuff_to_header_func');

    Best regards,
    Josue

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.