-
-
Save TheoKoenig/0c6b508122ae95c82d4f81bc41309040 to your computer and use it in GitHub Desktop.
Revisions
-
TheoKoenig revised this gist
Jul 31, 2020 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,14 +2,14 @@ ******************************************/ class submenu_wrap extends Walker_Nav_Menu { function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<div class='sub-menu-section'><div class='sub-menu-row'><ul class='sub-menu'>\n"; } function end_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "$indent</ul></div></div>\n"; } } <?php wp_nav_menu(array( -
fieldoffice revised this gist
May 25, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ /* EXTEND SUBNAV ******************************************/ class submenu_wrap extends Walker_Nav_Menu { function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<div class='sub-menu-wrap'><ul class='sub-menu'>\n"; @@ -13,5 +13,5 @@ class submen_wrap extends Walker_Nav_Menu { } <?php wp_nav_menu(array( 'walker' => new submenu_wrap() )); ?> -
fieldoffice revised this gist
May 25, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ /* EXTEND SUBNAV ******************************************/ class submen_wrap extends Walker_Nav_Menu { function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<div class='sub-menu-wrap'><ul class='sub-menu'>\n"; @@ -13,5 +13,5 @@ class submenu-wrap extends Walker_Nav_Menu { } <?php wp_nav_menu(array( 'walker' => new submen_wrap() )); ?> -
fieldoffice created this gist
Feb 22, 2015 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ /* EXTEND SUBNAV ******************************************/ class submenu-wrap extends Walker_Nav_Menu { function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<div class='sub-menu-wrap'><ul class='sub-menu'>\n"; } function end_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "$indent</ul></div>\n"; } } <?php wp_nav_menu(array( 'walker' => new submenu-wrap() )); ?>