Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other [Solved] [WordPress] Multilingual site, each language have different menu.

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30432
    seeingsound
    Member

    I have tried qTranslate, it works really nicely, but I need to have different menu for some languages (in 2 languages it will be the same, but other 2 languages have some items less in menu). Right now the only thing I came out with is to use WordPress MU :D. But I thing it’s not the best way to do it.

    #78543
    seeingsound
    Member

    So I found a way to hide menu items in other languages(qTranslate). If anyone is interested this is how I did it:
    1. Don’t add title translation to the page you don’t want to show, just add space (otherwise the title will be automatically changed to def language).
    2.Add some jQuery to hide empty a tags

    I tried to hide empty a tags with css

    .menu a:empty { display: none;}

    but IE and Safari didn’t understand it. At first it was ok, but then I discovered the “:empty display:none” will hide ALL the menu items in Safari :S.
    Thats all :)

    #86568
    sax
    Member

    Hi seeingsound,

    thank you for your post, it was extremely helpful!
    Just what I was looking for.

    #94382
    nishant032
    Member

    @seeingsound, would you mind articulating more ? how did you do? thanks

    #105234

    Nice!

    Thanks for sharing…

    I was working on this for several hours…

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Other’ is closed to new topics and replies.