Viewing 2 replies - 1 through 2 (of 2 total)
  • Have the same issue, can be my limited knowledge on how to use php codes. I have tried pasting in several codes as mentioned in manual, including <?php pll_the_languages();?>

    Have tried this on several places of the header and footer of my Big City theme (sportmassage.yeuxbleus.eu), but didn’t manage to simply paste in without ruining the layout. Should other code be added? Can someone give an example on how/where to paste this in?

    Thx,

    Maarten

    Plugin Author Chouby

    (@chouby)

    It is much likely that the layout breaks when you modify a theme file, You have to modify the style too. Each link of the switcher has the class lang-item to help styling it.

    Please also notice that if you are not using the dropdown option, you have to write yourself the ‘ul’ to output a correct html.
    <ul><?php pll_the_languages(); ?></ul>
    You can of course add an id or class to the ul to style it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Polylang] Is it possible to display a language switcher without using the widget ?’ is closed to new replies.