jasonglisson
6/22/2017 - 11:52 PM

Wordpress - Append this to the end of the main menu

Wordpress - Append this to the end of the main menu

function add_last_nav_item($items) {
  return $items .= '<li><a href="#myModal" role="button" data-toggle="modal">Contact</a></li>';
}
add_filter('wp_nav_menu_items','add_last_nav_item');