1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Remove divi from my taxonomy

Discussion in 'Free Divi Community Forum' started by lllyx, Mar 24, 2024.

  1. lllyx

    lllyx New Member

    Created a page on pure HTML, CSS conflict with divi
    It is not possible to disable styles completely through the admin area
    I wrote this code, but it removes part of it

    PHP:
    function remove_my_style_stylesheet() {
        global 
    $post;

        if (
    $post && $post->post_type == 'service') {
            
    wp_deregister_style'divi-style' );
            
    wp_deregister_style'divi-dynamic' );
            
    wp_deregister_style'wp-postratings' );
            
    wp_deregister_style'wpgb-head-inline' );
            
    wpgb_deregister_style'wpgb-head-inline' );
            
    wp_deregister_style'dominant-color-styles-inline' );
            
    wp_deregister_style'css-divi-area' );
            
    wp_deregister_style'et-divi-customizer-global-cached-inline');
            
    wp_deregister_style'css-divi-static');

        }
    }
    add_action'wp_enqueue_scripts''remove_my_style_stylesheet');
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade team carousel design for your Divi site without using any plugins:View Demo