Forum Replies Created
-
AuthorPosts
-
wtalbotMember
Thank you for the response. However, in looking at the source the link is correctly pointing to the Minimum2 folder (http://www.marriedwithluggage.com/wp-content/themes/minimum2/style.css?ver=1.9.2). This exact same problem is happening on other sites with 1.9.2 installed, including http://www.the247relationship.com (which has no caching installed at all).
This is a new problem I've not encountered in previous years working with Genesis and seems to have occurred with the move to using wp_enqueue.
After much research I discovered a fix I had to make to a Genesis core file in order to finally force the updates in the browser. I have modified the following line from load-styles.php (wp-content > themes > Genesis > lib > css ):
wp_enqueue_style( $handle, get_stylesheet_uri(), false, $version );
And changed it to:
wp_enqueue_style( $handle, get_stylesheet_uri(), false, time() );
Now, instead of appending the Parent version (which will always be 1.9.2, thus the problem) it pulls in the unique code for the time with each refresh. The downside is that this will slow down the loading, but it is functioning correctly in both sites since this change.
Ideally this would be a function which would check if an update to the CSS has been made and then, and only then, would this call be made. However, this will require more work.
-
AuthorPosts