Plugin Reviews

qTranslate remove one language menu item

Remove untranslated menu items from menu by simply removing the language string. Use when a menu should appear in one language only.

2 reviews
Average Rating
2.8 out of 5 stars
You are currently viewing the reviews that provided a rating of 3 stars. Click here to see all reviews.
Allison - you are great!
By , for WP 3.8.1

I also initially liked the plugin but had the same issues. Without your hack I would have given up. Don't see why the developer does not fix this. On the downside I have to edit the CSS if I ever change the menu names. I am using WP 3.8.1 and latest Genesis framework.

Kinda buggy, but I have some temporally solution
By , for WP 3.6.1

At the first moment, I loved the plugin's idea.
I implemented it on my site to solve the "(Language) Page Title" problem.

But it leaves some blank spaces in the menu and sometimes changes the item order depending which language is active.

After some hours, I was able to find a solution.

  • About the blank spaces
    The plugin leaves a blank list item (li) where isn't a title for the active language, with a blank class menu-item- where it should be menu-item-POST_ID. So, in my css I wrote:

    #mymenu li.menu-item- {display: none !important;}
  • About wrong item order
    In the qtranslate-remove-menu-item.php file in the plugin folder, there is the following code in the myMenuExits function:

    return empty($strings[$lang]) ? 'null' : $obj;

    It completely destroys the object, making WordPress behaving in a strange way. So, I replaced the line I quoted for:

    if( empty($strings[$lang]) )
    		$obj->ID 		= '';
    		$obj->title 	= '';
    		$obj->post_name = '';
    		$obj->db_id 	= '';
    	return $obj;

I hope this temporally solution helps some people!

You must log in to submit a review. You can also log in or register using the form near the top of this page.