WordPress.org

Support

Support » Plugins and Hacks » Polylang » [polylang] flags on header or footer

[polylang] flags on header or footer

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Chouby

    @chouby

    As described in the documentation, you can use the template tag pll_the_languages to put the language switcher anywhere in your theme.

    Hello, I need help on how/where to insert the “pll_the_languages” tag in the footer file of the theme.

    I hope you can help I’m starting with wp, And I want to put the flags in the footer and dont know how…

    By the way your plugin is working fine for me, its perfect. I just want to put the flags in the footer…

    thanks,
    NP

    Plugin Author Chouby

    @chouby

    Copy this line:
    <ul><?php pll_the_languages(array('show_flags'=>1,'show_names'=>0));?></ul> in your theme file footer.php where you want

    Hello,
    Please take a look at this website: http://www.marikuza.com/
    I have made my flag to be in the header but i don’t know how to put it on the right side. Which code i need to write down and where.
    I used
    #access .menu-header li.lang-item {
    float: right;
    }
    But it doesn’t work.
    Please for some support.
    Thanks

    Plugin Author Chouby

    @chouby

    The css you are using works in menu, not when the language switcher is put anywhere in the theme. This may help you.

    I want to change the way in which flags are displayed polylang plugin in my web header, as shown in list now and want to display next to each other.
    I used the option you mention of <?php pll_the_languages(array(‘show_flags’=>1,’show_names’=>0)); ?> But as I say I shows the flags listed, and can not find the way to modify it, can you help me????

    thanks

    Plugin Author Chouby

    @chouby

    The function you are using diplays html. The presentation is the matter of your css file. Some hints are available in the Polylang FAQ

    Chouby, thanks for being so fast and efficient, always resuesves doubts … keep it up.

    Thank you.

    Hello, In the header of my website http://www.graficelly.nl appears “> before every flag. What can I do to prevent that?
    thanks for your reply.

    Plugin Author Chouby

    @chouby

    @graficelly The problem is coming from your theme. It does not use the standard display of nav menu and adds a value in title attribute of the link when this attribute is empty. This “default” value is what is diplayed by the menu item. That’s fine if there is only text but totally breaks the html code if there is a picture in the menu item.

    So either, you are able to modify the theme, or do not display flags or choose another theme (most will work as most themes do not customize the nav menu).

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[polylang] flags on header or footer’ is closed to new replies.
Skip to toolbar