How To Add Custom Stylesheet on WordPress Theme and Bypass Cache System

February 13, 2017February 13, 2017

Nowadays, many website using Cache System to accelerated Website. The issues with cache technologies is we can’t get Live Version our modified design via (CSS), it’s because our site stylesheet already cached. So we need really hard to get the latest version of our modified design/UI.

Now.. we will share the simplest solution to make our design will be live immediately and bypass Cache System. To do that we need to add extra code and create another .css files to make this code always got the latest version. We use WordPress functions that called wp_enqueue_style

Here is the simply way to bypass Cache System on our CSS files on WordPress.

The first step, you need login to your WordPress Server via FTP. Because we need to create one files (example me.css) and of course we need modified and added extra line of code on our functions.php

Login to your Server via FTP and goes to your current theme and add me.css

Now, open functions.php then add this code

Done

Easiest way bypass Cache WordPress Stylesheet

I will explain, the code that we put on functions.php is to bypass Web Cache System. Because we added MD5 in the end of me.css.

So each time our site requested, web server alway request NEW me.css, so the latest modified will be used.