Dennis Ploetner
Forum Replies Created
-
Forum: Plugins
In reply to: [Multisite Language Switcher] msls loses connection between sitesMSLS uses lots of the WordPress API functions. So this bug has its roots in WordPress core:
If you look into the WordPress core -> http://github.com/WordPress/wordpress-develop/blob/6.9/src/wp-admin/includes/ms.php#L633-L673, it just prints English in case it is different from American or British English. But this not the whole problem. It creates an array with keys (en_US, en_GB, and en). To visualize what I mean:$output = array(
'en_US' => 'American English',
'en_GB' => 'British English',
'en' => 'English',
);This means it would work for 3 English websites but fails from with 4. The connections should work in any other case. I had similar setups with lots of languages.
- This reply was modified 4 weeks, 1 day ago by Dennis Ploetner.
Forum: Plugins
In reply to: [Multisite Language Switcher] msls loses connection between sitesThere are 2 possible scenarios:
- The websites are not tied together with the same “Reference User” -> check the plugin’s settings
- Some of the websites have the same language (region_code) set -> check the websites’ settings
Forum: Plugins
In reply to: [Multisite Language Switcher] Connection problems between languagesGreat news! Thanks.
Forum: Plugins
In reply to: [Multisite Language Switcher] How to unlink a post between languagesI believe one possibility could be to check the box “Exclude blog” in the settings of the plugin.
Forum: Reviews
In reply to: [Multisite Language Switcher] Great plugin and awesome support!Thank you so much! 🙂
Glad, it helped! 🙂
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>Hey, I just saw this here, which doesn’t come from a MSLS widget or block. It reminded me of another plugin:
- This reply was modified 4 months, 4 weeks ago by Dennis Ploetner.
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. 😉
Please, check also the settings in “Reference User”. Are they the same?
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,
DennisForum: Plugins
In reply to: [Multisite Language Switcher] Link added to post descriptiomYes, you probably activated the checkbox for the hint.
Forum: Plugins
In reply to: [Multisite Language Switcher] CZ.png flag image broken (redirected)Sorry for responding so late. As far as I can see, there is a custom folder with your flags configured. The original folder has a flag, but this one seems not to have it: /wp-content/Flags/cz.png
Cheers!Great to read that! Cheers
Are you able to save the plugin’s settings?