Skip to content

Instantly share code, notes, and snippets.

Working from home

Suciu Alexandru lexthor

Working from home
Block or report user

Report or block lexthor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lexthor / sub-menu-wrap
Created Nov 13, 2019 — forked from fieldoffice/sub-menu-wrap
Wordpress - add div wrapper around sub-menu
View sub-menu-wrap
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);
View nested-navigation-link-list-full-snippet.liquid
You can’t perform that action at this time.