Understanding Floating vs Embedded Language Switcher in MultiLipi
عروض MultiLipi طريقتان مرنتان to place the language switcher on your website — طافي و مضمن — so it fits your design and user experience needs.

1. Floating Switcher
What is it?
ال floating switcher appears as a small, draggable widget positioned in one of the corners of your screen — typically:
- أسفل اليسار
- أسفل اليمين
- أعلى اليسار
- أعلى اليمين
Why use it?
- أنت don’t need to edit your HTML manually.
- Works out-of-the-box on any website, including WordPress, Shopify, Webflow, etc.
- يظهر تلقائيا للمستخدمين في جميع أحجام الشاشات .
- عظيم للتثبيت السريع للتوصيل والتشغيل.
مثال على حالة الاستخدام:
You're launching a multilingual site and want the switcher to always be visible in the bottom-left corner of the screen without changing the layout.
2. Embedded Switcher
What is it?
ال embedded switcher lets you place the switcher inside a specific part of your HTML, such as:
- شريط التنقل ( <nav>)
- عنصر واجهة مستخدم الشريط الجانبي
- قسم تذييل
يمكنك القيام بذلك عن طريق توفير محدد CSS (على سبيل المثال ، #language-switcher, قائمة .nav ، إلخ.) في لوحة معلومات MultiLipi الخاصة بك.
Why use it?
- It يمتزج بسلاسة into your website’s design.
- Perfect for custom layouts or sites where you want full control over where the language switcher appears.
- Helpful for users who expect the switcher near the navigation or in a dropdown menu.
مهم:
إذا كان محدد CSS المتوفر هو غير موجود على الصفحة ، سيعود MultiLipi تلقائيا إلى طافي switcher — ensuring it still appears.
المنطق الاحتياطي: ماذا يحدث إذا فشل المضمن؟
If the switcher تعذر العثور على الهدف المضمن on your webpage (e.g., you removed the div or changed its class name), then MultiLipi:
- Automatically switches to Floating mode
- يضمن أن المستخدم يمكنه لا يزال تغيير اللغات without any disruption
- سجلات أ تحذير وحدة التحكم في المتصفح لتصحيح الأخطاء
أيهما يجب أن تستخدمه؟
ملخص
اختار طافي for simplicity and مضمن for design control. MultiLipi’s smart fallback logic ensures your switcher always works — even if your layout changes.

التعليقات