Viewing 5 replies - 1 through 5 (of 5 total)
  • 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?

    Thread Starter meereck

    (@meereck)

    <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=&quot;https://domain/wp-content/plugins/polylang/flags/en_US.png&quot; title=&quot;English&quot; alt=&quot;English&quot; />" href="https://domain/en/"  hreflang="en"><span data-hover="<img src="https://domain/wp-content/plugins/polylang/flags/en_US.png" title="English" alt="English" />"><img src="https://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)?

    Thread Starter meereck

    (@meereck)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Wrong flag code in menu’ is closed to new replies.