• 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!

Viewing 1 replies (of 1 total)
  • Thank you that was really helpfull.

    Ronny Sherer if you see this message please include these changes to the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Kinda buggy, but I have some temporally solution’ is closed to new replies.