Ali Abdullah
Ali Abdullah

Reputation: 164

wp_enqueue_style not adding version

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

Answers (1)

Jared Cobb
Jared Cobb

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

Related Questions