WordPress.org

Support

Support » Themes and Templates » [Resolved] dual languages menu

[Resolved] dual languages menu

  • Hi everyone!

    I have a little problem…
    I want to create a homepage with two languages. The visitors will select with one language they prefer.
    My problem is: I want to have the same design on both interfaces but on the same theme/database.
    How can I resolve to have pages with menu language A and pages with menu language B on the same place (ex. at the top)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author nobita

    @nobita

    Hi Moonlight Eagle

    Raindrops has language Class at body

    <body class="... accept-lang-ja ...">
    <body class="... accept-lang-en ...">

    Based on the language setting of the browser, this class will be added to the body element automatically

    forexample template or entry content

    <div class="ja">japanese</div>
    <div class="en">english</div>

    style.css

    .accept-lang-ja .ja{display:block;}
    .accept-lang-ja .en{display:none;}
    .accept-lang-en .en{display:block;}
    .accept-lang-en .ja{display:none;}

    Thank you.

    Theme Author nobita

    @nobita

    It was after about 2 weeks, and then change the resolved because there is no answer, especially

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] dual languages menu’ is closed to new replies.