Language switcher in right top bar - by kordicpetar

This topic has 10 replies, 3 voices, and was last updated 7 years, 7 months ago ago by Jack Richardson

  • Avatar: kordicpetar
    kordicpetar
    Participant
    September 1, 2016 at 10:15

    I would like to add language switcher in right top bar before option your account.

    How can I do you have any css settings already that modify switcher to be more like Legenda theme?

    Thanks!!!!

    9 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    September 1, 2016 at 10:46

    Hello,

    If you want to create multilingual site you need use WPML plugin which is compatible with the theme.

    To add language switcher in right top bar you have to edit the file wp-content/themes/legenda/framework/theme-functions.php after line 1281.

    Regards,
    Eva Kemp.

    Avatar: kordicpetar
    kordicpetar
    Participant
    September 1, 2016 at 10:50

    Hi there,

    Thanks for a quick replay!

    I already use WPML so that is done.

    Regarding theme-functions.php file, do I copy folder framework and theme-functions.oho file in child theme and then edit it, or do I just copy file there?

    Also, If you have done, do you have part of the code whic can I enter there?

    Avatar: Eva
    Eva Kemp
    Support staff
    September 1, 2016 at 11:06

    Hello,

    You need add this code:
    <?php do_action('wpml_add_language_selector'); ?>

    You need create folder “framework” in child theme and copy the file into there https://docs.woocommerce.com/document/set-up-and-use-a-child-theme/

    Regards,
    Eva Kemp.

    Avatar: kordicpetar
    kordicpetar
    Participant
    September 12, 2016 at 10:39

    Hi there,

    When I edited this file, language switcher added itself in top left cornet, and I can not move it to the right side, next to my account section.

    Do you know how can I do this?

    Thanks very much!

    Petar

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 12, 2016 at 11:28

    Hello,

    I’ve added the code in child functions.php file. Please check site now.

    Best regards,
    Jack Richardson.

    Avatar: kordicpetar
    kordicpetar
    Participant
    September 12, 2016 at 20:07

    Thank you very much for this.

    Can I ask one last thing, regarding this? I am trying to put all of this in line, not to be in two line in top bar, but whole day can not succeed. Can you help me, how to set up language to be before my account, or “PRIJAVI SE” link.

    Thanks once again!!!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 12, 2016 at 20:21

    Hello,

    Try to use this code in child style.css file:

    #lang_sel_click li {
        width: 80px;
    }
    #lang_sel_click {
       display: inline;
    }
    .links {
       width: 300px;
    }

    Best regards,
    Jack Richardson.

    Avatar: kordicpetar
    kordicpetar
    Participant
    September 13, 2016 at 09:15

    Guys, you are the best support that I ever encountered!!!!

    Thanks!!!!

    I will recommend your theme always!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 13, 2016 at 09:39

    Hello,

    You’re welcome and thank you for kind words!
    We’d be glad if you leave a review on ThemeForest site https://themeforest.net/item/legenda-responsive-multipurpose-wordpress-theme/reviews/5888906

    We appreciate it very much.

    Thank you.
    Best regards,
    Jack Richardson.

  • Viewing 10 results - 1 through 10 (of 10 total)

The issue related to '‘Language switcher in right top bar’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.