I'm building small blog for myself. Using hosting from Siteground and Underscores_ starter theme. I'm having problem with style.css file.
I use Cyberduck for uploads, I'm 100% sure about uploading the file into right folder, I always make sure that I'm overwriting previous one.
Whenever I change something in style.css, I upload it to the themes folder of installed Wordpress, exactly into folder of the theme I'm editing. But when i visit the site afterwards, no visual change occurs (I'm adding @font-face), even when I check the style.css with web inspector there's no change in the file, it still is style.css from previous day.
I don't have such problem with any other files in theme folder, for example editing header.php and adding some random placeholder text into body can be seen instantly after header.php edit and upload.
My style.css works perfectly while running it on localhost with MAMP, thus i don't think that there's problem with actual css code.
Is it normal that it takes Cca. 1 day for style.css to "update" ? By now, I can see visual changes, that I made in the style.css yesterday
To force browsers to serve the latest version of a stylesheet, you can leverage the $version param of wp_enqueue_style(). For development purposes, you can version the stylesheet URL with a UNIX timestamp. For _s that would be (in functions.php):
wp_enqueue_style( '_s-style', get_stylesheet_uri(), array(), time() );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With