load a different stylesheet in a category post
You can do it like- function wpse_enqueue_post_template_styles() { if ( is_category(‘bedrijven’) ) { wp_enqueue_style( ‘post-template’, get_stylesheet_directory_uri() . ‘/layout-interieur.css’ ); } } add_action( ‘wp_enqueue_scripts’, ‘wpse_enqueue_post_template_styles’ ); Here bedrijven is your category slug. As you said the above method hasn’t worked for you, so here I’m suggesting another method- First remove the first method’s full code. Then … Read more