WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate remove one language menu item
[resolved] Invisible menu on main language menu (4 posts)

  1. markzoi
    Member
    Posted 1 year ago #

    It worked by elimination from the main menu the page that is come only in English language, but now i have notice that in the main language menu there is a blind menu that appear you can notice that there is a blank space between the two menu bigger .... What I could be depends on?

    Thanks

    Mark

    http://wordpress.org/extend/plugins/qtranslate-remove-one-language-menu-item/

  2. janek2012
    Member
    Posted 6 months ago #

    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 );
  3. markzoi
    Member
    Posted 6 months ago #

    Thank you so much

    MArk

  4. estebanlopezadriano
    Member
    Posted 3 months ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic