• Can i remove the div container from the custom menu so i’m just left with the ul and subsequent links..

    Or does it always have to be there?

    Many thanks ??

Viewing 1 replies (of 1 total)
  • I know this question is old, but I figured I would help out anyway. Add this to your functions file:

    add_filter('wp_nav_menu_args', 'prefix_nav_menu_args');
    function prefix_nav_menu_args($args = ''){
        $args['container'] = false;
        return $args;
    }

    That code should remove the div container.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Menu Remove Div Container?’ is closed to new replies.