- الحالة
- مفتوحة
- أُبلغ عنها لـ
- WPML Multilingual CMS 4.4.10
نظرة عامة على المشكلة
إذا أضفت مبدل اللغة في منطقة ودجت، فستلاحظ أن خيارات لون التحويم لا تُعرض في الواجهة الأمامية.
حل بديل مؤقت
لإصلاح ذلك:
- يُرجى إنشاء نسخة احتياطية كاملة لموقعك قبل المتابعة.
- افتح الملف /wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-inline-styles.php، السطر 148.
- استبدل هذا:
if ( $slot->get( 'font_other_hover' ) || $slot->get( 'background_other_hover' ) ) { $css .= "$wrapper_class a:hover,$wrapper_class a:focus {"; $css .= $slot->get( 'font_other_hover' ) ? "color:{$slot->get( 'font_other_hover' )};" : ''; $css .= $slot->get( 'background_other_hover' ) ? "background-color:{$slot->get( 'background_other_hover' )};" : ''; $css .= '}'; } - بـ:
if ( $slot->get( 'font_other_hover' ) || $slot->get( 'background_other_hover' ) ) { $css .= "$wrapper_class .wpml-ls-item a:hover,$wrapper_class .wpml-ls-item a:focus {"; $css .= $slot->get( 'font_other_hover' ) ? "color:{$slot->get( 'font_other_hover' )};" : ''; $css .= $slot->get( 'background_other_hover' ) ? "background-color:{$slot->get( 'background_other_hover' )};" : ''; $css .= '}'; } - ثم ابحث عن السطر 141.
- استبدل هذا:
if ( $slot->get( 'font_other_normal' ) || $slot->get( 'background_other_normal' ) ) { $css .= "$wrapper_class>a:link {"; $css .= $slot->get( 'font_other_normal' ) ? "color:{$slot->get( 'font_other_normal' )};" : ''; $css .= $slot->get( 'background_other_normal' ) ? "background-color:{$slot->get( 'background_other_normal' )};" : ''; $css .= '}'; } - بـ:
if ( $slot->get( 'font_other_normal' ) || $slot->get( 'background_other_normal' ) ) { $css .= "$wrapper_class .wpml-ls-item a:link {"; $css .= $slot->get( 'font_other_normal' ) ? "color:{$slot->get( 'font_other_normal' )};" : ''; $css .= $slot->get( 'background_other_normal' ) ? "background-color:{$slot->get( 'background_other_normal' )};" : ''; $css .= '}'; }