• Avada has an option to create layout sections and decide where they need to appear (eg. single post, single category, etc).
    After translating them accordingly I always have the same footer on each language.

    Anyone have experience the issue?

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same problem. Does anyone know how to solve it?

    Pleaseeee.

    Thread Starter Benedetto Forastiere

    (@bene82)

    Hi! It seems to be a compatibility issue between Avada and Polylang.
    I’ve solved with this code:

    add_filter( 'option_fusion_tb_layout_default', function( $option ){
    	$option_orig = $option;
    	$orig_post_id = '2593';
    	$post_id_curr_lang = pll_get_post($orig_post_id, pll_current_language());
    	if($post_id_curr_lang){
    		$option = str_replace($orig_post_id, $post_id_curr_lang, $option_orig);
    	}
    	return $option;
    });

    Where $orig_post_id is the post id of the section you want to translate correctly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Polylang and Avada Theme Builder’ is closed to new replies.