• Hello,

    I am displaying 3 languages with their name in my site header. In Firefox, I see them as

    FR EN DE

    while in Edge & Chrome, I see them without the space between each language

    FRENDE

    I see the attribute “preserve” for the item spacing in walker-list.php (to keep the whitespace between list items). It should normally display a “tab \t” between each list item.

    In Firefox I see this code

    <li id="menu-item-2521-fr" class="lang-item lang-item-26 lang-item-fr lang-item-first current-lang menu-item menu-item-type-custom menu-item-object-custom current_page_item menu-item-home menu-item-2521-fr"><a href="https://.../" hreflang="fr-FR" lang="fr-FR">FR</a></li>
    <li id="menu-item-2521-en" class="lang-item lang-item-398 lang-item-en menu-item menu-item-type-custom menu-item-object-custom menu-item-2521-en"><a href="https://..." hreflang="en-US" lang="en-US">EN</a></li>
    <li id="menu-item-2521-de" class="lang-item lang-item-435 lang-item-de menu-item menu-item-type-custom menu-item-object-custom menu-item-2521-de"><a href="https://.../" hreflang="de-CH" lang="de-CH">DE</a></li>

    Don’t why where the blank is coming from Firefox and why there is no blank on other browsers…

    Thanks,

    Didier.

    • This topic was modified 6 years, 11 months ago by swissspaceboy.
    • This topic was modified 6 years, 11 months ago by swissspaceboy.
    • This topic was modified 6 years, 11 months ago by swissspaceboy.
Viewing 1 replies (of 1 total)
  • Thread Starter swissspaceboy

    (@swissspaceboy)

    bump…

    Other have the same problem when displaying the languages names in the lang switcher ? Or is it due to my stylesheet or theme ?

Viewing 1 replies (of 1 total)
  • The topic ‘Language switcher : malformatted html on Edge and Chrome (but OK with Firefox)’ is closed to new replies.