Skip to content

Instantly share code, notes, and snippets.

@jasonglisson
Last active September 14, 2017 12:41
Show Gist options
  • Select an option

  • Save jasonglisson/2824e55ccf28d4315bbdb8459810ac74 to your computer and use it in GitHub Desktop.

Select an option

Save jasonglisson/2824e55ccf28d4315bbdb8459810ac74 to your computer and use it in GitHub Desktop.

Revisions

  1. jasonglisson revised this gist Sep 14, 2017. No changes.
  2. jasonglisson created this gist Jun 22, 2017.
    4 changes: 4 additions & 0 deletions add_to_menu.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    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');