Support » Plugin: qTranslate remove one language menu item » Invisible menu on main language menu

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try to add this code just before the php finishing tag (?> in wp-content/plugins/qtranslate-remove-one-language-menu-item/qtranslate-remove-menu-item.php):

    function myMenuExits2( $items, $menu, $args ) {
        foreach ( $items as $key => $item ) {
            if ( $item->title == '' )
    			unset( $items[$key] );
        }
        return $items;
    }
    
    add_filter( 'wp_get_nav_menu_items', 'myMenuExits2', 6 );

    Thank you so much

    MArk

    I was trying to use this plugin with mqTranslate (as qTranslate is not yet updated to WP3.9) and I was having the same issue as @markzoi.
    Your workaround worked perfectly for me @janek2012, thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Invisible menu on main language menu’ is closed to new replies.