Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Very Easy Method:
- In your theme’s function file (Appearance > Editor > Functions.php), add the following code before the closing PHP tag (%>) at the bottom of the file:
- function _remove_script_version( $src ){
- $parts = explode( '?', $src );
- return $parts[0];
- }
- add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
- add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
- Visual : http://www.bilgedede.org
- Source: http://www.tricksmachine.com/2012/04/remove-query-strings-from-static-resources.html#comment-747724
Add Comment
Please, Sign In to add comment