I'm writing a custom wordpress plugin, and am trying to enqueue the plugin's CSS style. Currently testing in my local WP instance.
Here is the code:
function comment_rating_styles() {
wp_register_style( 'comment-rating-styles', plugins_url( '/' , __FILE__ ) . 'assets/style.css');
wp_enqueue_style( 'dashicons' );
wp_enqueue_style( 'comment-rating-styles' );
}
add_action( 'wp_enqueue_scripts', 'comment_rating_styles' );
It may be possible that something in the theme overwrites or disables the dashicons or the comment styles. You can try to add a higher priority, so it gets executed later.
add_action( 'wp_enqueue_scripts', 'comment_rating_styles', 999 );