Community Forums › Forums › Archived Forums › General Discussion › CSS Changes not updating after upgrade
- This topic has 8 replies, 3 voices, and was last updated 10 years, 8 months ago by avhslibrary.
-
AuthorPosts
-
August 12, 2013 at 2:19 pm #55856jaehouseMember
I created a custom Genesis child theme and up to now have never had trouble with updates. Am I missing something that I should be doing in order for changes to my child theme css to show up?
When I inspect element it shows me the old styles under my child theme style.css but with a ?ver2.0. after it.
What am I doing wrong?
http://theindiechicks.comAugust 12, 2013 at 2:39 pm #55865RobGMemberWhat seems to not be showing up?
To speed up the process please post the link to the website in question.
We recommend using Firebug to view source codes http://getfirebug.com/
RobGoss WordPress Developer
We build WordPress websites for your business or personal goals
http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgossAugust 12, 2013 at 2:46 pm #55867jaehouseMemberAny changes I make to my stylesheet in my child theme folder
August 12, 2013 at 3:17 pm #55874RobGMemberWhat theme are you using?
To speed up the process please post the link to the website in question.
We recommend using Firebug to view source codes http://getfirebug.com/
RobGoss WordPress Developer
We build WordPress websites for your business or personal goals
http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgossAugust 12, 2013 at 3:21 pm #55875jaehouseMemberI created my own Genesis Child Theme... That's why I'm asking, is there something I should be doing? I don't understand why when I inspect element, it's showing me styles in style.css?ver=2.0 IN my child theme folder. And any changes I make to my style sheet remain saved but don't show up in the site. And when I inspect element again, it shows me the old styles.
August 12, 2013 at 5:44 pm #55910RobGMemberI'm not really sure if it's someting you created you might want to back step to see if your coding is incorrect.
To speed up the process please post the link to the website in question.
We recommend using Firebug to view source codes http://getfirebug.com/
RobGoss WordPress Developer
We build WordPress websites for your business or personal goals
http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgossAugust 12, 2013 at 8:33 pm #55942jaehouseMemberGot it. It's called CSS caching (which I had never heard of)... Added the code below to functions.php and it referenced my stylesheet again:
function remove_cssjs_ver( $src ) { if( strpos( $src, '?ver=' ) ) $src = remove_query_arg( 'ver', $src ); return $src; } add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 ); add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );
Thanks for your help.
August 13, 2013 at 3:36 am #55982RobGMemberGlad you got it sorted out.
To speed up the process please post the link to the website in question.
We recommend using Firebug to view source codes http://getfirebug.com/
RobGoss WordPress Developer
We build WordPress websites for your business or personal goals
http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgossAugust 18, 2013 at 3:40 pm #57216avhslibraryMemberHi, Jaehouse--
I'm having a similar problem. I'm using w3 total cache. Are you using something similar?
I see the code you came up with and you mentioned it's for your style sheet. Are you using a stylesheet which is named style.css?
My website is amadorvalleyhs.org. I make changes to the stylesheet but they only appear if I deactivate W3 Total Cache.
Thanks,
Erik
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.