How to apply css on post?
-
Hi,
after installing theme from library I want to apply separate css for post only
specifically I want hypelink text color on post to be red. (I mean apply style for tag <a>)I followed this post (which is customizing functions.php (main) and adding single.css) but it doesn’t work. (maybe I did it wrong ).
function single_post_css() {
if(is_single()){
wp_enqueue_style( 'single', get_stylesheet_directory_uri() . '/single.css' );
}
}
add_action( 'wp_enqueue_scripts', 'single_post_css' );Is there another method or should I follow that approach?
Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.