- סטטוס
- נפתר
- סוג
- באג
- דווח עבור
- WPML Multilingual CMS 4.6.7
- נפתר ב־
- WPML 4.7.0
- תוסף/ערכת עיצוב קשורים
- Elementor
- תגיות נושא
- Compatibility
סקירת התקלה
בעת שימוש ב־Elementor Pro עם WPML לבנייה ולתרגום של חלונות קופצים, ייתכן שה־inline CSS עבור החלונות הקופצים המתורגמים לא יוצג כראוי. הדבר גורם להבדלים חזותיים קטנים בין הגרסה המקורית לגרסה המתורגמת.
פתרון עוקף
אנא ודא שיש לך גיבוי מלא של האתר לפני שתמשיך.
- פתח את הקובץ …/wp-content/plugins/elementor-pro/modules/popup/tag.php.
- חפש את שורה 99.
- שנה את:
public function render() { $settings = $this->get_active_settings(); if ( 'close' === $settings['action'] ) { $this->print_close_popup_link( $settings ); return; } $this->print_open_popup_link( $settings ); } - ל:
public function render() { $settings = $this->get_active_settings(); if ( 'close' === $settings['action'] ) { $this->print_close_popup_link( $settings ); return; } // WPML Workaround for compsupp-7039 if ( class_exists('Sitepress') && isset($settings['popup']) ) { $settings['popup'] = apply_filters( 'wpml_object_id', $settings['popup'], get_post_type($settings['popup']) , TRUE ); } $this->print_open_popup_link( $settings ); }