/ Published in: PHP

Put it in functions.php
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Removes version number from scripts and styles function remove_src_version ( $src ) { global $wp_version; $version_str = '?ver='.$wp_version; } else{ return $src; } } add_filter( 'script_loader_src', 'remove_src_version' ); add_filter( 'style_loader_src', 'remove_src_version' );
Comments
