• Hey there !
    I have an issue with display conditions being reset every time I edit a template / header / footer / CPT of the second language (primary langage : French, secondary : English).

    Headers and Footers have been created with Elementor Pro.

    What I’ve done so far to make everything work fine again is : every time I edit a template of the the second language, then I re-open all templates from the primary langage that have a display condition and save them again. I sometimes have to change the display condition, save and then put the right display condition again and save again.
    It worked every time but it’s VERY time consuming !

    Is this an known issue ?

    For the record, I’m using Elementor 3.1.2 as I’ve read on plenty of facebook group the newest version (3.1.3) breaks templates.`

    At the moment I have removed the language switch (default Polylang one) as the website is supposed to be delivered to the client early next week and english version isn’t ready yet (not all content etc) but pages ARE created and visible.
    For instance :
    https://ppd.crescendo-finance.com/en/home/

    Thanks !

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter alexis888

    (@alexis888)

    I’ve seen the plugin author(s?) have a facebook group but I’ven’t been accepted :/

    Thread Starter alexis888

    (@alexis888)

    It’s a really weird marketing strategy to just ignore these kind of issues that have been brought up by a lot of users. Even just an answer to say “sorry we don’t know how to fix this at the moment” would be better than ghosting :/

    Here’s what worked for me.
    Downgrade to elementor 3.1.2 and add this code to functions.php

    // Polylang 
    add_filter( 'elementor/theme/get_location_templates/template_id', function( $post_id ) {
    	if ( function_exists( 'pll_get_post' ) ) {
    		$translation_post_id = pll_get_post( $post_id );
    		if ( null === $translation_post_id ) {
    			// the current language is not defined yet
    			return $post_id;
    		} elseif ( false === $translation_post_id ) {
    			//no translation yet
    			return $post_id;
    		} elseif ( $translation_post_id > 0 ) {
    			// return translated post id
    			return $translation_post_id;
    		}
    	}
    	return $post_id;
    } );
    • This reply was modified 3 years, 8 months ago by ptichka.

    @csteve

    Rolling back to Elementor: 3.1.0 & Elementor Pro 3.1.1, is the best combination for me.
    With this combination i get the templates/Language issue fixed and the less possible bug with Elementor.

    Tip: Rollback Elementor Pro before Elementor. You might need few retry to get it done right.

    Good luck

    Thread Starter alexis888

    (@alexis888)

    Rolling back is really not ideal IMO has a security breach has been discovered and patched in Elementor 3.1.2, 3.1.3 and eventually in the latest version 3.1.4.
    Post from Wordfence

    So we REALLY need a fix asap :/

    • This reply was modified 3 years, 8 months ago by alexis888.

    For me the rollback to 3.0.10 (PRO) did not resolve the problem.

    I have the same issue. When I add/edit a template translation, all other templates conditions are getting ignored. This is very, very annoying when editing a big website with a lot of templates and conditions because it breaks everything.

    Also, I discovered that a template which has the condition to Display on All Pages, is overwriting translation templates. So a generic condition has more priority than a specific one (a translation template in this case).

    Polylang team should definitely check and fix this issue as soon as possible.

    Moderator Yui

    (@fierevere)

    永子

    I’m closing this thread.

    Do not post about commercial products

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Display conditions reset when editing a template’ is closed to new replies.