Product slider carousel plugin breaks some admin panel styles of Divi Theme.

It seems the plugins shares similar classes or styles as divi's (elegant themes), tabs of sorts. To solve this issue follow this topic.

 

Add this code to your functions.php file located in /wp-content/themes/Divi, at the end of the file. You can also find the file in Appearance > Editor > Theme Functions (functions.php)

add_action( 'admin_enqueue_scripts', 'yith_admin_enqueue_scripts_divi_theme', 20 );
function yith_admin_enqueue_scripts_divi_theme(){
global $pagenow;
if( 'admin.php' == $pagenow && ! empty( $_GET['page'] ) && 'et_divi_options' == $_GET['page'] ){
$handles = array(
'jquery-ui-overcast',
'yit-plugin-metaboxes'
);
foreach( $handles as $handle ){
wp_dequeue_style( $handle );
}
}
}

Remember when you will update the theme, you can leave the code inside this file.

 

 

Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk