You want to remove the version number from the CSS & JS in your WordPress theme.<\/p>\n
Go to your theme folder and open the functions.php<\/strong> file.<\/p>\n You can add the code below code to the bottom of your functions.php<\/strong> file. It is best to add this to the\u00a0child theme if possible so updates of the main theme don’t remove the code.<\/p>\n \/\/ Remove WP Version From Styles \/\/ Function to remove version numbers After adding the code upload the file to your server.<\/p>\n The rest will be covered in the lesson.<\/p>\n","protected":false},"excerpt":{"rendered":" Remove Version Number From CSS & JS in WordPress Theme Test Project 1 You want to remove the version number from the CSS & JS in your WordPress theme. Go to your theme folder and open the functions.php file. You can add the code below code to the bottom of your functions.php file. It is […]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","footnotes":""},"yoast_head":"\n
\nadd_filter( ‘style_loader_src’, ‘sdt_remove_ver_css_js’, 9999 );
\n\/\/ Remove WP Version From Scripts
\nadd_filter( ‘script_loader_src’, ‘sdt_remove_ver_css_js’, 9999 );<\/p>\n
\nfunction sdt_remove_ver_css_js( $src ) {
\nif ( strpos( $src, ‘ver=’ ) )
\n$src = remove_query_arg( ‘ver’, $src );
\nreturn $src;
\n}<\/p>\n