Help!Display flags only
-
Hi there, I would like to display the two optional flags instead of languages and then the drop down menu.
Sorry, I am a newbie!!
So e.g. you are on the spanish site, I’d like to see only the german and english flag to be able to choose from.
I have found this:
<!– outputs a flags list (without languages names) –>-
<?php pll_the_languages( array( ‘show_flags’ => 1,’show_names’ => 0 ) ); ?>
Important: You have to output yourself the ul tags if you don’t use the dropdown option
Also what does this mean: IMPORTANT: when using one or more of these function, you *must* check for its existence before using it, otherwise your site will badly break with a fatal error at next Polylang update (as WordPress deletes the plugin when updating it).
Is this what I want and if yo, where and how do I implement this please? Because in the backend of the plugin, I can not see any settings. Thank you!!The page I need help with: [log in to see the link]
- The topic ‘Help!Display flags only’ is closed to new replies.