[Resolved] [Plugin: Polylang] How to insert flags into menu in custom positions
great plugin! I’d like to ask if there is any way to insert flags into menu manually e.g.
Languages –(dropdown)–> en_EN, es_ES
Some other element
I think it could be done by using some kind of shortcode in menu element’s name attribute.
In that case you need to use wordpress filter ‘wp_nav_menu_items’ and replace those codes into proper links using preg_replace().
I can try to prepare proper patch but firstly let me know what do you think about that :).
- The topic ‘[Resolved] [Plugin: Polylang] How to insert flags into menu in custom positions’ is closed to new replies.