• Hello there,

    first, thanks really a lot for this awesome plugin.

    I got a general question about how this plugin works.
    Perhaps I don’t understand it correctly?

    I have setup my multisite according to the docs.

    Main site is in Englisch language
    The subsite with directory /de/ is the German language

    Each site is configured via the option page of the plugin.

    pages are connected across languages

    http://www.domain.com/contact <-> http://www.domain.com/de/kontakt
    http://www.domain.com/imprint <-> http://www.domain.com/de/impressum

    and so on for each page

    the multisite language switcher is added to the header with the Gutenberg block.

    all works fine and the language flags are displayed in the header of the website.

    If i visit for example the page http://www.domain.com/contact then the englisch language flag has the URL http://www.domain.com/contact

    the German flag has the link http://www.domain.com/de/

    why does the plugin not display the link of the connected page?
    In this case http://www.domain.com/de/kontakt

    the language flag always only links to the main site with the corresponding sub site /de/ … /fr/ … /es/ … and so on

    perhaps this is how the plugin is supposed to work?

    If I look at the demo site it works the same

    https://msls.co/user-docs/ the German language flag ‘only’ links to the main site with the language directory https://msls.co/de/

    why does the plugin not link to the proper connected page https://msls.co/de/user-docs/

    this is something I actually don’t understand.

    If the language flag always only points to the main site I always ‘start at the beginning’ and have to search for the proper page I came from

    If the pages and posts are connected by the plugin it should be possible to link to the connected page.

    Am I missing something? did I setup the plugin wrong?
    Or would I still need to use a hook to get the proper language link of the connected page?

    Any clarification would great.
    And please keep up the good work you’re doing!

    Greetings
    Becki

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Dennis Ploetner

    (@realloc)

    Hi Becki,

    thanks a lot for your kind words and for using the plugin!

    You’re right — the language flags should not just point to the start page of each site. If the pages (or posts) are correctly connected in the MSLS settings, then the German flag on /contact should indeed lead to /de/kontakt, and so on.

    I’ve just moved the demo site msls.co to a new provider and finished setting it up, so now the demo should show the correct behavior. Could you please have another look there?

    If your flags still link only to the main site (like /de/), then usually one of these things is happening:

    • The pages aren’t actually connected yet in the MSLS meta box.
    • Caching (object cache or page cache) is showing outdated links.

    Can you double-check if the correct connections show up in the page editor under “Multisite Language Switcher”? If they do, and the problem still persists, please let me know — a link to your site would help me understand better.

    Thanks again for reporting this and for your feedback!

    Best,
    Dennis

    Thread Starter Becki Beckmann

    (@becki)

    Hello Dennis,
    sorry for my late reply and thanks a lot or your reply 🙂

    Here’s a link to the site: https://dako-ag.com/

    The WordPress site does not use a caching system.

    The pages are correctly connected via the MSLS meta box.
    See screenshots below …

    if there’s anything else I can do to help debug this issue then please let me know.

    Thanks a lot for your help
    & with best regards
    becki

    Thread Starter Becki Beckmann

    (@becki)

    Hello Dennis,

    any updates on the issue?
    would love to see this work!

    Thanks & keep up the good work you’re doing
    Becki

    Plugin Author Dennis Ploetner

    (@realloc)

    Please, check also the settings in “Reference User”. Are they the same?

    Thread Starter Becki Beckmann

    (@becki)

    Hello Dennis,

    thanks a lot for your reply. I jsut checked and “Reference user” are both the same.

    Plugin Author Dennis Ploetner

    (@realloc)

    OK, now just use the language-switcher coming from Multisite Language Switcher. The one you have comes from TranslatePress, as far as I can see. 😉

    Thread Starter Becki Beckmann

    (@becki)

    Hello Dennis,

    not sure what you mean? I have installed the plugin Multisite Language Switcher. It even syas your name Dennis Ploetner. There’s nothing installed from TranslatePress. I will attach a screenshot from multi site setup plugins … it’s a small and simple site. Not that many plugins at all.

    if there’s anything I can provide you with to fix this issue then please let me know.

    thanks
    & greetings
    Becki

    Plugin Author Dennis Ploetner

    (@realloc)

    Hey, I just saw this here, which doesn’t come from a MSLS widget or block. It reminded me of another plugin:

    Thread Starter Becki Beckmann

    (@becki)

    Good morning Dennis,

    not sure what you mean? perhaps you forgot to add something?

    Anyway, if there’s anything I can do to help you debug the issue then please let me know.

    thanks
    & greetings
    Becki

    Plugin Author Dennis Ploetner

    (@realloc)

    Yes, indeed. Seems my screenshot is not going up. This markup here seems not to come from MSLS:

    <div class="ast-builder-language-switcher-wrapper ast-builder-language-switcher-layout-horizontal">
    <div class="ast-builder-language-switcher-element">
    <nav class="ast-builder-language-switcher" aria-label="Language Switcher">
    <ul class="ast-builder-language-switcher-menu">
    <li class="ast-builder-language-switcher-menu-item-header">
    <a href="/" aria-label="English" role="link" class="ast-builder-language-switcher-item">
    <span class="ast-lswitcher-item-header">
    <span class="ahfb-svg-iconset ast-inline-flex svg-baseline">
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30">
    <clipPath id="a"><path d="M0 0v30h60V0z" /></clipPath>
    <clipPath id="b"><path d="M30 15h30v15zv15H0zH0V0zV0h30z" /></clipPath>
    <g clip-path="url(#a)"><path d="M0 0v30h60V0z" fill="#012169" />
    <path d="M0 0l60 30m0-30L0 30" stroke="#fff" stroke-width="6" />
    <path d="M0 0l60 30m0-30L0 30" clip-path="url(#b)" stroke="#C8102E" stroke-width="4" />
    <path d="M30 0v30M0 15h60" stroke="#fff" stroke-width="10" />
    <path d="M30 0v30M0 15h60" stroke="#C8102E" stroke-width="6" />
    </g>
    </svg>
    </span>
    </span>
    </a>
    </li>
    <li class="ast-builder-language-switcher-menu-item-header">
    <a href="" aria-label="German" role="button" class="ast-builder-language-switcher-item">
    <span class="ast-lswitcher-item-header">
    <span class="ahfb-svg-iconset ast-inline-flex svg-baseline">
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 5 3">
    Flag of Germany
    <rect id="black_stripe" width="5" height="3" y="0" x="0" fill="#000" />
    <rect id="red_stripe" width="5" height="2" y="1" x="0" fill="#D00" />
    <rect id="gold_stripe" width="5" height="1" y="2" x="0" fill="#FFCE00" />
    </svg>
    </span>
    </span>
    </a>
    </li>
    </ul>
    </nav>
    </div>
    </div>
    Thread Starter Becki Beckmann

    (@becki)

    Hello Dennis,

    thanks a lot for your hint about the HTML markup which does not come from your plugin MSLS.

    that actually did the trick. The theme I use is WP Astra and they also provide a language switcher widget which does work with the WPML plugin.

    https://wpastra.com/docs/using-language-switcher/

    somehow I added this widget to the header thinking that it is the MSLS widget. 🙈

    I did a short test and if I add the shortcode [sc_msls] from your plugin all works as it should.

    sorry for causing trouble and using up your time.

    and thanks again for your top support and please keep up the great work you’re doing.

    all the best
    & greetings
    Becki

    Plugin Author Dennis Ploetner

    (@realloc)

    Glad, it helped! 🙂

    Thread Starter Becki Beckmann

    (@becki)

    Hello Dennis,

    just wanted to say THANK YOU again for your support and help debugging things.

    The site is now properly setup and the multisite language switcher works like a charm 🙂

    https://dako-ag.com/

    greetings
    Becki

Viewing 13 replies - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.