How to change WordPress’ stylesheet URL with add_filter(). Just a quicky: To change the stylesheet URL in WordPress, to offload static content, put the following in your theme’s functions.php file:


add_filter('stylesheet_uri', 'saotn_change_css');
function saotn_change_css() {
  return "//css.example.com/wp-content/themes/[theme name]/style.css";
}

Now your theme’s style.css will be loaded from a sub domain -or hostheader- called css.example.com. This can improve overall website performance.

This may interest you:   How to add conditional analytics tracking code in WordPress Multisite