דלג על ניווט

Open

Reported for: WPML Multilingual CMS 4.6.7

Topic Tags: Compatibility

Overview of the issue

When utilizing Elementor Pro with WPML to build and translate pop-ups, the inline CSS for the translated pop-ups may not be rendered correctly. This leads to small visual discrepancies between the original and translated versions.

Workaround

Please, make sure of having a full backup of your site before proceeding.

  • Open …/wp-content/plugins/elementor-pro/modules/popup/tag.php file.
  • Look for line 99.
  • Change:
    	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 );
    	}
    
  • For:
    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 );
    }
    

2 תגובות אל “Elementor Pro - Inline CSS not rendered for translated pop-ups”

השאר מענה

אנא הישארו בנושא והיו מכבדים לאחרים. אם אתה צריך עזרה בבעיות שאינן קשורות לפוסט הזה, השתמש בפורום התמיכה שלנו כדי להתחיל צ'אט או לשלוח כרטיס.

תוכל להשתמש בתגים הבאים:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>