Blocking Plugin Css to load custom in template directory

You can dequeue a style, for do that you can use wp_dequeue_style() or wp_deregister_style() To use both of them, first u need to find the handler of the style you want. Go to the plugin’s folder you wanna remove the css and search for wp_enqueue_style or the file name and locate the handler. wp_enqueue_style( ‘my-plugin-font-awesome’, … Read more

Custom css per category and per single post belong in each category

Category archive pages can be styled using the body class as per your example – WordPress does this out of the box. But for single pages, you need to add this to functions.php: function add_category_name($classes=””) { if(is_single()) { $category = get_the_category(); $classes[] = ‘category-‘.$category[0]->slug; } return $classes; } add_filter(‘body_class’,’add_category_name’); This will add the body class … Read more

Dynamic CSS through PHP issue

Wow I am an idiot. Ok, here is my error. .contain-to-grid .top-bar { background-color: <?php echo $novus_nav_color; ?>; } I needed to just echo the variable and it was trying to call a string.

WordPress aggressively caching CSS

WordPress doesn’t actively participate in the process of actually serving your stylesheet file. It links to it in page source, but as actual physical file the handling of it isn’t done by WordPress core and passed to the webserver to be served as any static file would be. ?ver=3.9.1 is added by default, if actual … Read more