• Resolved blueyez

    (@blueyez)


    hi. how can i remove the

    /wp-content/gd-star-rating/css/rating.css?ver=1.9.0

    from the plugins ( css/js )
    the cache don’t work for those

Viewing 3 replies - 1 through 3 (of 3 total)
  • This should work.

    Add this code to your function.php in your theme’s folder

    ## remove version from css and js for proper caching
    function _remove_script_version( $src ){
    	$parts = explode( '?', $src );
    	return $parts[0];
    }
    add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
    Thread Starter blueyez

    (@blueyez)

    worked except for one:

    /wp-content/plugins/sexybookmarks/css/style.css?ver=3.2.3.1

    you can always hard code this url into your theme but you may have issues updating your plugin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘remove ?ver= from header’ is closed to new replies.