Skip to content

Instantly share code, notes, and snippets.

@artikus11
Created June 14, 2017 20:14
Show Gist options
  • Save artikus11/1bfef07e6a9c0bc78efd668c6edd7a45 to your computer and use it in GitHub Desktop.
Save artikus11/1bfef07e6a9c0bc78efd668c6edd7a45 to your computer and use it in GitHub Desktop.
Переопределение классов и контенеров для виджета Произвольное меню
add_filter( 'widget_nav_menu_args', 'artabr_widget_menu_category' );
function artabr_widget_menu_category ($arg) {
$arg['container'] = 'div';
$arg['container_class'] = 'rubric__list side__menu';
$arg['menu_class'] = '';
return $arg;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment