Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Dennis Ploetner

    (@realloc)

    Hi,

    please look for the call to wp_nav_menu in your functions.php and tell me the parameters used by this function so I can suggest you the configuration.

    Cheers,
    Dennis.

    Thread Starter dgeckovn

    (@dgeckovn)

    Hi Dennis,

    I did a search in the functions.php but there’s no call to wp_nav_menu.

    I found this, but not sure if it’s what you’re looking for:

    #-----------------------------------------------------------------#
    # Custom menu
    #-----------------------------------------------------------------#
    if ( function_exists( 'register_nav_menus' ) ) {
    	register_nav_menus(
    		array(
    		  'top_nav' => 'Top Navigation Menu',
    		  'secondary_nav' => 'Secondary Navigation Menu <br /> <small>Will only display if applicable header layout is selected <a href="'. admin_url('?page=redux_options&tab=4') .'">here</a>.</small>'
    		)
    	);
    }	
    
    //dropdown arrows
    class Nectar_Arrow_Walker_Nav_Menu extends Walker_Nav_Menu {
        function display_element($element, &$children_elements, $max_depth, $depth=0, $args, &$output) {
            $id_field = $this->db_fields['id'];
            if (!empty($children_elements[$element->$id_field]) && $element->menu_item_parent == 0) {
                $element->title =  $element->title . '<span class="sf-sub-indicator"><i class="icon-angle-down"></i></span>';
    			$element->classes[] = 'sf-with-ul';
            }
    
    		if (!empty($children_elements[$element->$id_field]) && $element->menu_item_parent != 0) {
                $element->title =  $element->title . '<span class="sf-sub-indicator"><i class="icon-angle-right"></i></span>';
            }
    
            Walker_Nav_Menu::display_element($element, $children_elements, $max_depth, $depth, $args, $output);
        }
    }

    Thanks so much for looking at this for me Dennis!

    Cheers,
    Matin

    Plugin Author Dennis Ploetner

    (@realloc)

    Yes, you’re right. It is of course register_nav_menu or register_nav_menus. Add this here to your functions.php:

    function my_custom_menu_item( $items, $args ) {
        if ( function_exists ( 'the_msls' ) && 'top_nav' == $args->theme_location ) {
            $obj = new MslsOutput;
            $arr = $obj->get( 2 );
            if ( !empty( $arr ) ) {
                $items .= '<li>' . implode( '</li><li>', $arr ) . '</li>';
            }
        }
        return $items;
    }
    add_filter( 'wp_nav_menu_items', 'my_custom_menu_item', 10, 2 );

    Just change the html-code for your needs and read on here: https://github.com/lloc/Multisite-Language-Switcher/wiki/Generate-the-output#manipulate-the-navigation-menu

    Cheers,
    Dennis.

    Thread Starter dgeckovn

    (@dgeckovn)

    Dennis, thank you so much.

    Is there a specific line in functions.php that I should add the code you provided? Should it be added at beginning/end of #custom menu area?

    I know you’ve had to repeat this to others a million times, but I really appreciate your help. Great plugin, excellent support!

    Cheers,
    Matin

    Plugin Author Dennis Ploetner

    (@realloc)

    You can ad it where you want. No problem!

    Cheers,
    Dennis.

    Thread Starter dgeckovn

    (@dgeckovn)

    Worked perfectly! Thanks so much Dennis!!!

    Cheers,
    Matin

    Plugin Author Dennis Ploetner

    (@realloc)

    Very good! Have fun!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Position Flags in Nav Menus’ is closed to new replies.