WordPress.org

Forums

Polylang
[polylang] flags on header or footer (11 posts)

  1. ohayonyaakov
    Member
    Posted 2 years ago #

    hey
    how can i do to put the line of flags on the header or on the footer ?

    thank you

    http://wordpress.org/extend/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 2 years ago #

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

  3. nuno p
    Member
    Posted 2 years ago #

    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

  4. Chouby
    Member
    Plugin Author

    Posted 2 years ago #

    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

  5. Naddyto
    Member
    Posted 1 year ago #

    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

  6. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

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

  7. edugarlao
    Member
    Posted 1 year ago #

    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

  8. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

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

  9. edugarlao
    Member
    Posted 1 year ago #

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

    Thank you.

  10. Graficelly
    Member
    Posted 1 year ago #

    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.

  11. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    @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).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Polylang
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.