EffortLess Multisite Language Switcher

EffortLess Multisite Language Switcher

توسط

EffortLess Multisite Language Switcher is a lightweight plugin designed for WordPress Multisite networks.
It adds a floating globe icon on the frontend, allowing users to quickly switch between subsites — each typically representing a different language or locale.

The plugin detects each site’s locale setting and displays an appropriate flag icon. Flags are automatically mapped using a JSON file and preloaded to enhance performance. Optimized caching ensures fast rendering of the switcher.

This plugin is ideal for multilingual networks using subdirectories or subdomains.

Features:
– Automatically detects and displays flags for each site in the network.
– Uses a floating, always-visible globe icon for an intuitive language switcher.
– Intelligently switches to equivalent pages/posts with matching slugs across language sites.
– Falls back to site homepage if equivalent page doesn’t exist on target site.
– Option to hide the language switcher on all sites via network admin settings.
– Customizable switcher position (top-left, top-right, bottom-left, bottom-right) with adjusted top spacing.
– Flag menu appears below the switcher for top positions and above for bottom positions.
– Smart caching using WordPress transients for flag mappings and site lists.
– Fully compatible with subdirectory and subdomain multisite setups.
– Optimized for performance with minimal resource usage.

License

This plugin is released under the GPLv2 or later.
You can use it freely in commercial or personal projects.

  1. Upload the plugin folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Ensure each subsite in your network has the proper WPLANG setting (via Settings > General).
  4. Create pages/posts with matching slugs across language sites for automatic URL matching.
  5. (Optional) Customize translations and flag mappings in /assets/flags/ and locales_flags.json.
  6. (Optional) Use the network admin settings to hide specific sites, hide the entire language switcher, or adjust its position.

سوالات متداول

Does this plugin work on single-site WordPress installations?

No. This plugin is designed exclusively for WordPress Multisite networks.

How does it detect the language for each subsite?

It uses the WPLANG setting from each site’s options.

How does the plugin match pages across different language sites?

The plugin looks for pages/posts with the same slug (post name) on the target language site. For example, if you’re viewing /en/about-us/ and switch to French, it will try to load /fr/about-us/. If that page doesn’t exist, it falls back to the homepage of the French site.

Do I need to manually link pages together?

No! As long as your pages/posts have the same slug across different language sites, the plugin will automatically find and link to them.

Can I customize the flags or locales?

Yes! Edit the assets/flags/locales_flags.json file to add or modify mappings.

Are the flags hosted locally?

Yes, all flag icons are SVG files stored in the plugin’s /assets/flags/1x1/ directory.

Can I hide the language switcher completely?

Yes, you can disable the language switcher for all sites using the option in the network admin settings.

Can I change the position of the language switcher?

Yes, you can select from top-left, top-right, bottom-left, or bottom-right positions in the network admin settings, with top positions adjusted for better spacing.

What happens if a page doesn’t exist in the target language?

The plugin will automatically redirect to the homepage of the target language site.

تصویری برای این آیتم موجود نیست.
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
نسخه حجم فایل SHA256 تغییرات دانلود
1.1.1 1 مگابایت -
دانلود
×
★★★★★
★★★★★
5.0 /5 (1 نظر)

قیمت:

رایگان

نگارش

1.1.1

آخرین انتشار

20 اردیبهشت 1405

آخرین بروزرسانی

3 ماه پیش

نصب های فعال

-

نگارش وردپرس

وردپرس 5.5+

تست شده از نسخه

وردپرس 6.9.4

نگارش PHP

PHP 7.4+

نسخه ها

1 نسخه