Move dashicons.min.css to Footer

Please try below code : add_action( ‘wp_print_styles’, ‘my_deregister_styles’ ); function my_deregister_styles() { wp_deregister_style( ‘dashicons’ ); } Replace your css path “PATH_OF_CSS” : add_action( ‘wp_footer’, ‘register_wp_footer’, 11 ); function register_wp_footer() { wp_enqueue_style( ‘dashicons’, ‘PATH_OF_CSS’ ,array(), false, true ); }

How To Load wp_add_inline_styles

You need to add enqueue your child themes style sheet as well add_action( ‘wp_enqueue_scripts’, ‘inline_bar_width’ ); function inline_bar_width() { wp_enqueue_style( ‘twentytwenty-style’, get_stylesheet_directory_uri() . ‘/style.css’ ); if ( is_category( ‘ratings’ ) ) { $bar = bar_width(); $css=””; $css .= sprintf(‘.bar {width: %s%%;}’, $bar ); if ( $css ) { wp_add_inline_style( ‘twentytwenty-style’, $css ); } } }

Deregister a CSS file that comes with a plugin

You can use wp_dequeue_style function, with a wp_enqueue_script hook with priority higher than WPML’s wp_enqueue_script hook. Put the following code into your functions.php: function dequeue_wpml_styles(){ wp_dequeue_style( ‘wmpl_style_handle’ ); } add_action( ‘wp_enqueue_scripts’, ‘dequeue_wpml_styles’, 20 ); REPLACE ‘wmpl_style_handle’ with the handle WPML registers/enqueues the style. UPDATE: I have just had a look into WPML and it looks … Read more

How to get rid off default css styles

there are two ways, first: if you want to remove default style, just dequeue them using wp_dequeue_style( ‘style_file_name_here’ ). second: you can rename the existing file and create a new one with the same name, just place style hook info into new style file, like: /* Theme Name: Theme name Author: Author name */ remember, … Read more