• Resolved Nate

    (@goseongguy)


    Hello,

    Is it possible to disable the Astra Global Color Palette with a filter or something?

    I don’t really use them and each page of my site is stuffed with about 150+ lines of inline CSS regarding them, for example:

    :root .has-ast-global-color-0-color{color:var(--ast-global-color-0);}:root .has-ast-global-color-0-background-color{background-color:var(--ast-global-color-0);}

    This is part of the “astra-theme-css-inline-css”.

    This is not to be confused with the WP 5.9 global styles, which I already removed with the following:

    add_action( 'init',function(){
        remove_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles' );
        remove_action( 'wp_footer', 'wp_enqueue_global_styles', 1 );
    } );

    Thanks,
    Nate

    • This topic was modified 2 years, 10 months ago by Nate.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Disable Astra Global Color Palette’ is closed to new replies.