Support » Plugin: Multisite Language Switcher » Flags position in the Nav Bar

  • Resolved missmandarin



    i love your plugin, and i managed to add it to my nab menu bar. my question is : is there a way to put the flags closer or are they controlled by the CSS each separately as if they were a simple menu point ?

    i’d like to have the 3 languages’ flags close to each other but for now they seem like each flag is a separate menu.
    any guess?

    i copy pasted the code into the functions php and it works great 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • Uhm, just wanted to add: while the code works fine with one theme, it does not appear with the AVADA theme..

    Plugin Author Dennis Ploetner


    Seems you are using code like this:

    It is important to know the name of the menu which can differ from the name ‘primary’ which I used in my example. You could instead of

    $items .= '<li>' . implode( '</li><li>', $arr ) . '</li>';

    try a something link this

    $items .= '<li>' . implode( '', $arr ) . '</li>';

    Hope this helps,

    Hello Dennis!

    it does help for the flags to be closer 🙂

    but, in the AVADA 1.0 theme the flags still do not appear, though I used the same code in the functions.php..

    any guess?
    thanks again!

    Plugin Author Dennis Ploetner


    Look for a call to register_nav_menus in the functions.php of your theme. May be instead of ‘primary’ a menu with a slightly different name is registered there.

    Actually i have no call like that in the functions php… :S

    Sorry..found it!

    OK it appears but listed as a list .. gonna have to change that. please help, i won’t bother next time i promise 😀

    Plugin Author Dennis Ploetner


    OK, could you post this here?

    this is the site
    is that what you needed?

    Plugin Author Dennis Ploetner


    In my opinion you could use in this case a line of code similar to the example above:

    $items .= '<li class="msls">' . implode( '', $arr ) . '</li>';

    The rest is just CSS – I think – because it seems that you need just to float the images resp. links.

    i don t think i m gonna be able to do that 😀 i tried the line you gave me, yet it still appears “listed”.

    maybe i could try to put the Links in the normal Menu writing US, IT, FR, but without images….

    thanks for your kind and super fast answers!

    Plugin Author Dennis Ploetner


    Oh, I thought CSS might not be a problem. You could – after the modification mentioned above – add also some line to your style.css. I have not checked this but it seems that the images in the menu are defined as display: block; so you could try to add this to your CSS:

    .msls img { display:inline-block; }

    But CSS is not really a strength of mine so you should ask a webdesigner (the theme-author for example).

    thank you i will try to ask 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Flags position in the Nav Bar’ is closed to new replies.