How to customize the names in the language switcher?
You can change the language name by modifying the full name of the language.
View ArticleMy flags are not displayed on mobile devices
Some themes don’t use the orignal menu walker provided by WordPress but a custom menu walker to display navigation menus. It is quite frequent that theme developpers forget that plugins can add images...
View ArticleThe title attribute displays the html code of the flag
Polylang intentionally keeps the title attribute empty for the language switcher. As this field is empty some themes copy the navigation label in this attribute. It’s a bad practice as it doesn’t add...
View ArticleMy flags are misaligned in the Twenty Eleven menu
If you are using the flags provided with Polylang, just add the following css rule to the style.css file: #access img { display: inline; } It is much better to create a child theme to avoid loosing...
View ArticleHow to display the widget flags horizontally?
The appearance of your site is controlled by CSS rules placed in the file style.css in your theme directory. The appearance of the language switcher is controlled by the classes “lang-item” for all...
View ArticleHow to remove bullets in front of the flags?
You can add the following lines in the style.css file of your child theme: .lang-item { list-style: none; }
View ArticleThe language switcher doesn’t appear on frontend
To avoid 404 errors, Polylang does not display a language if there is no published content (post or page) in that language. If there is no content in any language, then the language switcher does not...
View ArticleCan I display a language switcher without the widget?
It is possible to get a language switcher where you want in your theme without using the widget. For this, you can use the following template tag in your theme: <ul><?php...
View ArticleCan I use my own flags for the language switcher?
Yes! Which file format can I use? You can use: PNG JPG SVG How should I name the files? Name them with the WordPress locale. That is to say the value which you can find in the column “Locale” in the...
View ArticleI can’t add the language switcher in the menus
In Appearance >Menus, click on screen options, top right of your screen, to expend the options and check the “Language switcher” checkbox. You should then see a new metabox in the “Add menu items”...
View Article