Genesis Framework: Adding HTML code before </nav>

1.4k 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 best solutions below

0
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
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/