How to Clear the Css Cache in Theme Genesis

How to Clear the Cache of the css in the Theme Genesis 1

Today I bring you the solution to a problem that I had to solve today. It is a very specific problem but if you use the theme genesis It can save you a few hours of anger.

The fact is that I have been making changes in the css of a blog and they were not reflected. I quickly thought that it was a thing of the cache plugin that I had installed so I deactivated it. I update the web and nothing continues without reflecting the changes I had made 🙂

I finally found the solution in this blog.

The problem is in this line of functions:

define( 'CHILD_THEME_VERSION', '2.1.2' );

Here we are telling it the version of the css that it has to take and of course when updating the css as we are telling it to take that version it does not update it.

So that you take into account the changes, what I have done is change the previous line for this:

define( 'CHILD_THEME_VERSION', '3.0.20140917b' );

Basically what I do is make sure it's a higher version using today's date. If I make several changes in one day I add a letter at the end so that the changes take effect.

Instead of doing it manually I have read that this plugin does the same: Style.css latest version (I have not tried it)

The war that this "nonsense" has given me 😉

I hope it will be useful to someone.

regards

 

Leave a comment