Skip to content

Instantly share code, notes, and snippets.

@muks999
Forked from artikus11/functions.php
Created October 9, 2018 12:59
Show Gist options
  • Save muks999/662999f485d1e745a4d0b695161840d3 to your computer and use it in GitHub Desktop.
Save muks999/662999f485d1e745a4d0b695161840d3 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