• Resolved vandalha

    (@vandalha)


    Hi,
    i’m searching but didn’t found and answer.
    How to activate the translation of Divi Layout in divi library with polylang ?
    I didn’t found it in the parameters of Polylang.

    Thanks in advance for your answer

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    You’ll need to modify your theme’s (or better still, your child theme’s) functions.php.
    Here’s the code I have successfully used.
    Please feel free to correct it/report back to the community if you have a neater workaround, as my skillz are a bit rusty!

    /** Add polylang to Divi Library Window */
    
    add_filter('pll_get_post_types', 'my_pll_get_post_types');
    function my_pll_get_post_types($types) {
    	return array_merge($types, array('et_pb_layout' => 'et_pb_layout'));
    }
    
    Thread Starter vandalha

    (@vandalha)

    Nice, it worked well and was really helpful for my footer section because it automatically change with the language of the webpage

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Polylang and Divi (Translate Divi Library Layout)’ is closed to new replies.