WordPress.org

Forums

raindrops
[resolved] dual languages menu (3 posts)

  1. Moonlight Eagle
    Member
    Posted 1 year ago #

    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)?

  2. nobita
    Member
    Theme Author

    Posted 1 year ago #

    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.

  3. nobita
    Member
    Theme Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic