Plugin Author
Chouby
(@chouby)
Hi!
Could you use the ‘code’ button to wrap your code so that it becomes readable and explain precisely what’s wrong in it?
<li id="menu-item-250-en" class="lang-item lang-item-7 lang-item-en menu-item menu-item-type-custom menu-item-object-custom menu-item-250-en"><a title="<img src="http://domain/wp-content/plugins/polylang/flags/en_US.png" title="English" alt="English" />" href="http://domain/en/" hreflang="en"><span data-hover="<img src="http://domain/wp-content/plugins/polylang/flags/en_US.png" title="English" alt="English" />"><img src="http://domain/wp-content/plugins/polylang/flags/en_US.png" title="English" alt="English" /></span></a></li>
In menu there is “> visible as text, i.e. it is not recognized as HTML tag.
I assume it is because polylang prints “< instead of “<
Plugin Author
Chouby
(@chouby)
Hi!
It looks like your theme has a custom menu walker which does not allow to display images in the menu items. Did you try with another theme (such as Twenty Twelve)?
You are right, it does work with another theme.
Plugin Author
Chouby
(@chouby)
I suggest that you ask the theme author to fix the issue and allow its menu to accept images in menu items (as default WP themes do). Otherwise you can remove the flags from the language switcher in menu or use the language switcher widget.