Viewing 2 replies - 1 through 2 (of 2 total)
  • Sorry, this is option is not available in this version of the plugin.

    But if you know some basic php you can use this code in your functions.php file instead of the plugin.

    Just replace this link with yours: http://fonts.googleapis.com/css?family=Amaranth&ver=3.5

    function _remove_script_version( $src ){
    	$excludes = array(
    		'http://fonts.googleapis.com/css?family=Amaranth&ver=3.5',
    	);
    	$result = $src;
    	if ( ! in_array($src, $excludes) ) {
    		$parts = explode( '?ver', $src );
    		$result = $parts[0];
    	}
    	return $result;
    }
    add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
    add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
    Thread Starter bolt24

    (@bolt24)

    Thanks man.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exclude a css-file from being stripped’ is closed to new replies.