Divi Tutorial: Add Sensei compatibility

/ **

* Divi + Sensei Compatibility

*

* This part is to hide the notice of not compatible with Sensei in admin.

* /

add_action ( 'after_setup_theme' 'divi_sensei_support' ) ;

function divi_sensei_support () {

add_theme_support ( 'sensei' ) ;

}

/ **

] * We now remove the default containers from Sensei

* /

global $ woothemes_sensei ;

remove_action ( ] 'sensei_before_main_content' array ( $ woothemes_sensei -> frontend 'sensei_output_content_wrapper' ) [1 9659007] 10 ) ;

remove_action ( 'sensei_after_main_content' array ( $ woothemes_sensei -> frontend 'sensei_output_content_wrapper_end' ) 10 ) ;

/ **

* And we added content containers specific to Divi

* /

add_action ( ' sensei_before_main_content ' ' divi_sensei_wrapper_start ' 10 ) ;

add_action (' sensei_after_main_content ' ' divi_sensei_wrapper_end ' 10 ) ;

function divi_sensei_wrapper_start () {

echo '

' ;

//

'

// echo'

';

}

function divi_sensei_wrapper_end ( ) [

echo '

' ;

get_sidebar ( ) ;

echo '

';

}