Reputation: 164
I am trying to add version to style.css file but its not adding version to style.css infact not adding version to any of css files. here's my code
wp_enqueue_style( 'twentyfifteen-style', get_template_directory_uri() . '/css/style.css', array(),'1.0','all');
Does any body knows what is the issue?
Thanks
Upvotes: 7
Views: 2680
Reputation: 5267
Since you mentioned that none if your stylesheets are getting versions I would suspect a plugin or the theme is filtering those URLs.
Try searching your theme and all plugins for any usage of the style_loader_src
filter. You may find the problem there.
Upvotes: 12