Dennis Ploetner
Forum Replies Created
-
Do you use any filter of the MSLS plugin?
OK, thanks for pointing it out.
I have a similar setup using multi networks: https://ploetner.io/de/von-multisites-zu-multi-networks/
On the other hand, you could also try to use 2 different users and set the reference user in the plugin’s settings. Read in here: https//msls.co/
- This reply was modified 9 months ago by Dennis Ploetner.
Forum: Plugins
In reply to: [Multisite Language Switcher] Plugin add # symbol in urlThanks for reaching out.
The Multisite Language Switcher plugin itself does not add /#/ to URLs. Its function is to manage language relations between sites in a WordPress Multisite network, and it doesn’t interfere with URL fragments or hashes like #.
What you’re seeing (/#/ or /cn/#/) is more likely introduced by:
- JavaScript from your theme or another plugin — some front-end frameworks or scripts (especially those using Vue.js, AngularJS, or React with hash-based routing) can add URL fragments like /#/.
- A redirect rule in your .htaccess, Nginx config, or JavaScript that appends a hash.
To confirm this, you can try:
- Switching to a default theme (like Twenty Twenty-Four) and deactivating other plugins temporarily to see if the behavior persists.
- Checking your browser’s developer tools (Network tab) to trace where and when the /#/ is added.
If it turns out the plugin is involved somehow – maybe via a filter or a compatibility issue – I’d be happy to take a closer look. Please share more details about your theme or any other plugins in use.
- This reply was modified 9 months, 1 week ago by Dennis Ploetner.
Forum: Plugins
In reply to: [Multisite Language Switcher] Content import not workingGlad it works! 🙂
Forum: Plugins
In reply to: [Multisite Language Switcher] Content import not workingForum: Plugins
In reply to: [Multisite Language Switcher] Content import not workingI’m not sure if you follow the plugin’s development, but I wouldn’t state that it isn’t longer supported. Getting some hints of what this error could be and in which circumstances it occurs helps though.
- This reply was modified 9 months, 3 weeks ago by Dennis Ploetner.
Forum: Plugins
In reply to: [Multisite Language Switcher] Content import not workingThanks, for pointing that out. I will check and come back with further info!
Cheers!
Forum: Plugins
In reply to: [Multisite Language Switcher] SKU in dropdown – againWhat can the Multisite Language Switcher do in your use-case? It is not clear to me.
Forum: Plugins
In reply to: [Multisite Language Switcher] Content import does not workThank you! Guten Rutsch! 🙂
Forum: Plugins
In reply to: [Multisite Language Switcher] Content import does not workThanks for pointing this out. Looks like I introduced a bug in the last minor release(s).
Forum: Plugins
In reply to: [Multisite Language Switcher] How to add to subheader menuI would suggest a slight change, because it would give you more flexibility and it is a bit more future-proof. You could use do_action when you want to print the output of MSLS in various parts of your templates. Let’s assume you just put this in your subheader:
<?php
$args = array(); // this could held some config
do_action( 'zwibasti_language_switcher_output', $args ); // this triggers an actionIn the functions.php (or in a custom plugin) you could have something like this:
<?php
function zwibasti_msls_print( array $args ): void {
if ( ! function_exists( 'the_msls' ) ) {
return;
}
$tags array(
'before_item' => '<li>',
'after_item' => '</li>',
'before_output' => '<ul class="your-css-class">,
'after_output' => '</ul>',
);
the_msls( wp_parse_args( $tags, $args ) );
}
add_action( 'zwibasti_language_switcher_output', 'zwibasti_msls_print' );What is the advantage? You can do it without looking in all files whenever you decide to change something or even use another solution. Also, with the centralized functionality, you can decide the minimal setup.
Forum: Plugins
In reply to: [Multisite Language Switcher] Manually create associationGreat! We can maybe give the importer some of the love it deserves. I will see what I can do there.
Forum: Plugins
In reply to: [Multisite Language Switcher] How to add to subheader menuWhere did you add the code? To a functions.php file in your theme or a custom plugin?
Forum: Plugins
In reply to: [Multisite Language Switcher] Manually create associationI wrote something in the past that can illustrate a bit what you want to achieve: Msls Importer
It is quite outdated code but it wanted to backup the MSLS options in a JSON file and provides also functionality to import those files back.