Genesis Framework: Adding HTML code before </nav>

1.3k views Asked by At

How can I add HTML code before the when I use the Genesis Framework? I do not want to edit the menu.php inside the genesis/init/functions/ folder..

I hope there is a Genesis Framework expert out there!

Thanks!

2

There are 2 answers

0
Kushal Shah On

Try this

Add this function into your child theme function.php

<?php add_filter('genesis_before_header','My_Html');
function My_Html(){ ?>
<!--Your HTML Code Here-->
}?>
2
Muhammad Asadullah On

You need to use this filter wp_nav_menu_items

I suggest follow guided tutorials here: http://www.petersenmediagroup.com/genesis-framework/adding-simple-social-icons-search-form-genesis-menu/