Community Forums › Forums › Archived Forums › General Discussion › CSS & Favicons not updating
Tagged: 1.9.2 updates, css, Favicon
- This topic has 11 replies, 5 voices, and was last updated 11 years, 9 months ago by
DanielJLewis.
-
AuthorPosts
-
May 5, 2013 at 4:07 pm #39455
wtalbot
MemberSince upgrading to Genesis 1.9.2 I have had numerous issues getting CSS updates and new favicons to show up on my websites. This is across numerous different websites, all running Genesis. I have tried turning off all caching, logging in from different browers and devices, and even going so far as adding code to automatically force the browers to grab a new version of CSS.
The only sure solution requires diving into the core Genesis files and updating the version of the CSS file manually each and every update. Even with this work it still is not addressing the vexing favicon issue on http://www.marriedwithluggage.com.
Any advice would be appreciated.
http://www.the247relationship.comMay 5, 2013 at 5:20 pm #39466AnitaC
KeymasterI am going to move this to the General discussion as this area is for bugs with the forum itself.
Need help with customization or troubleshooting? Reach out to me.
May 5, 2013 at 5:23 pm #39468AnitaC
KeymasterYou have the theme in a folder marked "Minimum2" and the style sheet is looking for a folder named "Minimum".
Need help with customization or troubleshooting? Reach out to me.
May 6, 2013 at 5:35 am #39504wtalbot
MemberThank 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.
May 6, 2013 at 6:11 am #39507AnitaC
KeymasterMaybe forward this information to the support team. It might be useful.
Need help with customization or troubleshooting? Reach out to me.
May 6, 2013 at 9:02 am #39542Andrea Rennick
MemberEven with this work it still is not addressing the vexing favicon issue onhttp://www.marriedwithluggage.com.
I see a custom favicon on that site. Please be aware that with favicons, browser cache them for *extremely* long times. Visiting the URL directly for the image usually clears it up.
But I see a white square with a red M in it on that site.
**forum signature**
If you need technical support for your theme please file a ticket.The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.
May 16, 2013 at 3:33 pm #41264Wirebird
MemberI'm having a similar problem with my favicon. I am rebranding the site at sturtevants-sv.com.
I've uploaded the new favicon to replace the green fish favicon but can't get it to change. The weird thing is that I can't even find the green version anywhere in my files.
I tried loading the page for the image itself and it was the right image but the favicon still didn't update.
This little image is driving me nuts....
Sara @ Wirebird Media – WordPress and Genesis web developer based in Bend, Oregon
May 16, 2013 at 3:34 pm #41265Andrea Rennick
MemberI do see it here:
http://sturtevants-sv.com/wp-content/themes/sturtos/images/favicon.ico
And in my broswer tab. You just have to wait for your browser cache to clear it out. It can take an extremely long time for favicons,
**forum signature**
If you need technical support for your theme please file a ticket.The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.
May 16, 2013 at 3:53 pm #41267Wirebird
MemberGreat, thanks Andrea! It must just be stuck in the cache of all of my browsers.
Sara @ Wirebird Media – WordPress and Genesis web developer based in Bend, Oregon
May 16, 2013 at 4:12 pm #41271Andrea Rennick
MemberAlso there could be dns caching from your ISP. The longest I've seen it happen was 2 months, but everyone else can see it, so.... ;D
**forum signature**
If you need technical support for your theme please file a ticket.The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.
July 8, 2013 at 9:17 am #49799DanielJLewis
Member@wtalbot, thanks for the suggested tweak. I like that and it's similar to what I'm looking for.
But I think it would be more ideal to have the CSS enqueued with its own version number, which is inside the child CSS file. That would force reloads only when I change that version number in my CSS, and wouldn't load based on time.
Is there an easy way to do this?
July 8, 2013 at 10:24 am #49805DanielJLewis
MemberI contacted StudioPress support about this and they pointed me to Versioning Your Stylesheet. It means changing a version number in my functions.php file with every CSS update, but I think that's acceptable.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.