CSS & Favicons not updating

Community Forums Forums General Discussion CSS & Favicons not updating

This topic is: resolved

This topic contains 11 replies, has 5 voices, and was last updated by  DanielJLewis 1 year ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #39455

    wtalbot
    Participant
    Post count: 2

    Since 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.

    • This topic was modified 1 year, 2 months ago by  anitac. Reason: move to appropriate forum area
    • This topic was modified 1 year, 2 months ago by  anitac. Reason: move to appropriate forum area
    http://www.the247relationship.com
    #39466

    anitac
    Participant
    Post count: 6991

    I am going to move this to the General discussion as this area is for bugs with the forum itself.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #39468

    anitac
    Participant
    Post count: 6991

    You have the theme in a folder marked “Minimum2″ and the style sheet is looking for a folder named “Minimum”.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #39504

    wtalbot
    Participant
    Post count: 2

    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.

    #39507

    anitac
    Participant
    Post count: 6991

    Maybe forward this information to the support team. It might be useful.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #39542

    Andrea Rennick
    Keymaster
    Post count: 949

    Even 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.

    Twitterholic

    #41264

    sssv
    Participant
    Post count: 17

    I’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

    #41265

    Andrea Rennick
    Keymaster
    Post count: 949

    I 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.

    Twitterholic

    #41267

    sssv
    Participant
    Post count: 17

    Great, thanks Andrea!  It must just be stuck in the cache of all of my browsers.


    Sara @ wirebird media – WordPress and Genesis web developer

    #41271

    Andrea Rennick
    Keymaster
    Post count: 949

    Also 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.

    Twitterholic

    #49799

    DanielJLewis
    Participant
    Post count: 14

    @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?

    #49805

    DanielJLewis
    Participant
    Post count: 14

    I 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.

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.