diff --git a/functions.php b/functions.php index ee2ca1a..a4412cd 100755 --- a/functions.php +++ b/functions.php @@ -28,6 +28,13 @@ function hello_elementor_child_enqueue_scripts() { } add_action( 'wp_enqueue_scripts', 'hello_elementor_child_enqueue_scripts' ); +/** Remove divi shortcode crap **/ + +function remove_divi_shortcodes( $content ) { + $content = preg_replace('/\[\/?et_pb.*?\]/', '', $content); + return $content; +} +add_filter('the_content', 'remove_divi_shortcodes', 20, 1); /********** Autres personnalisations **********/