Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #328147

    Hello and thank you for this wonderful theme!
    I want to display the language selector (Plugin: Polylang) in the top bar to the right of the social icons. With the following code this should be possible:

    <ul><?php pll_the_languages();?></ul>

    In which file should I insert this code so that the language selector is displayed?

    Many thanks and greetings
    Lukas

    #328448

    Hey LukasE!

    Please go to Appearance > Editor and open Helper-main-menu.php file and find

    //phone/info text	
    						$phone			= $headerS['header_phone_active'] != "" ? $headerS['phone'] : "";

    and add your code right above it as following

    pll_the_languages();

    Best regards,
    Yigit

    #328713

    Hey Yigit,
    thanks for your support!

    Although the flags are now in the top bar, but not the right of the Facebook-icon.
    Where do I need to place the code so that the flags are shown rightmost?

    And how can I center the flags vertically in the top bar? I could not find any setting options via CSS.

    Thanks and regards
    Lukas

    #328714
    This reply has been marked as private.
    #328961

    Hi!

    Please change the code to following one

     ?> <div class="my-lang"><?php pll_the_languages(); ?></div> <?php

    and then add following code to Quick CSS in Enfold theme options under General Styling tab

    .my-lang {
    float: right;
    }

    Best regards,
    Yigit

    #342829
    my-lang {
    float: right;
    }

    I’ve insert this code in my custom css but it does not work. But if i try to manipulat this my-lang element with firebug, it works!?

    Any ideas?

    Best regards,
    Lukas

    #342836
    This reply has been marked as private.
    #342839
    This reply has been marked as private.
    #342872

    Hey!

    There is a dot missing in front of your code, please try as following

    .my-lang {
    float: right;
    padding-top: 5px;
    margin-right: 19px;
    }

    Regards,
    Yigit

    #342932
    This reply has been marked as private.
    #343878

    Hey!

    Thank you for the info.

    Just add this on Quick CSS or custom.css to adjust the switcher position:

    .my-lang {
    width: auto;
    float: right;
    position: relative;
    right: 10px;
    top: 4px;
    }

    Regards,
    Ismael

    #343885
    This reply has been marked as private.
    #344717

    Please give me a hint, I have to start the project soon!

    Thanks and regards
    Lukas

    #345526

    Hey!

    in your Quick CSS replace this code:

    .my-lang {
    width: auto;
    float: right;
    position: relative;
    right: 10px;
    top: 4px;
    }
    
    .lang-item {
    display: inline;
    }
    

    with that one:

    .my-lang {
    width: auto;
    position: relative;
    right: 10px;
    }
    
    .lang-item {
    display: inline;
    margin-right: 10px;
    float: right;
    margin-top: 6px;
    }
    

    Cheers!
    Andy

    #845469

    Hello,
    according to your conversation – is there a simple way to change the switcher from text to flags displayed?

    Regards,
    Kamil

    #846477
Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘multilanguage selector in the’ is closed to new replies.