Removing the div of a single WP menu (1 post)

  1. pebble_garden
    Posted 2 years ago #

    Hey WP Forums,
    I'm currently using 3 menus. They all run fine, with the tags automatically made by wp around them. Now, for the next two menus I need to add, I want to remove the div tag, respectively removing div and ul tag for another one.

    add_action( 'init', 'register_my_menus' );
    function register_my_menus() {
    			'navigation' => __( 'Navigation' ),
    			'secondary-menu' => __( 'NavUnterseite' ),
    			'tertiary-menu' => __( 'Leistung' )

    This is the only code I got so far regarding menus.

    If there is no way to do it, it would work fine if there's a code that prevents WP from adding every new site to the navigation.
    This is what I'm currently using where I so far don't have a menu. Is there any like exclude but instead of "Include everyone, except the mentioned" like "Exclude everyone, except the mentioned":

    <?php wp_list_pages('title_li=&exclude=214,215,216,243,252,254'); ?>

    The resolutions I got where only working globally, for every menu I have and add. :(

Topic Closed

This topic has been closed to new replies.

About this Topic