WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Flags position in the Nav Bar

[Resolved] Flags position in the Nav Bar

  • Hello!

    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 🙂
    thanks!

    http://wordpress.org/extend/plugins/multisite-language-switcher/

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

    @realloc

    Seems you are using code like this:

    https://github.com/lloc/Multisite-Language-Switcher/wiki/Generate-the-output#manipulate-the-navigation-menu

    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,
    Dennis.

    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

    @realloc

    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

    @realloc

    OK, could you post this here?

    http://www.ritafoldi.com/sitoprova/en/

    this is the site
    is that what you needed?

    Plugin Author Dennis Ploetner

    @realloc

    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

    @realloc

    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 ‘[Resolved] Flags position in the Nav Bar’ is closed to new replies.