How to add css to wp_head depending on the user role?

Thanks to the help of two fellow members of this forum I have managed to get the snippet working. Here I leave the solution for any future answer seeker who happens to stop by. add_action( ‘wp_head’, function () { //Get current user ID, if the user is logged in. if ( is_user_logged_in() ) { $user_id … Read more

Dequeue classic-themes.min.css

Thanks to @t31os I achieved dequeuing the stylesheet with this code: function disable_classic_theme_styles() { wp_deregister_style(‘classic-theme-styles’); wp_dequeue_style(‘classic-theme-styles’); } add_filter(‘wp_enqueue_scripts’, ‘disable_classic_theme_styles’, 100);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)