I recently installed Local on my work laptop in order to do some development work for our new website. Local is all set up and running fine locally and I have a site set up and I’m working on our wordpress templates. The issue I’m having, however, is that local won’t display the styles on the site unless I save the stylesheet while running in “Instant Reload” mode. If I load up the site or refresh the page I’m on then the styles won’t show until I save one of the stylesheets - even if no changes have been made. This is frustrating and also causing elements of the page layouts to break.
Any idea why the stylesheets don’t want to show until I save a stylesheet file? This isn’t the only site it won’t work on either - it’s all sites in Local. Also, if I turn off “Instant Reload” mode then the styles just won’t display at all.
This is happening on the follow device:
Device name
N010
Full device name
N010.xxx.LOCAL
Processor
11th Gen Intel(R) Core™ i7-11370H @ 3.30GHz 3.30 GHz
Installed RAM
16.0 GB (15.7 GB usable)
Device ID
1AFA2EFF-D45C-4192-B7F7-29E468CE2213
Product ID
00330-80000-00000-AA858
System type
64-bit operating system, x64-based processor
Pen and touch
No pen or touch input is available for this display
And the following version of Windows:
Edition
Windows 10 Pro
Version
22H2
Installed on
02/09/21
OS build
19045.2965
Experience
Windows Feature Experience Pack 1000.19041.1000.0
I also have the Local logs if you need them.
Any help you can give would be appreciated because it’s making the development of the site rather laborious at the moment rather than easier.
Hello. Were there any thoughts on this? I’ve also got a problem that sometimes if I refresh a page, the page source reverts to earlier code and I have to close the tab and reopen the URL to display the most up-to-date code. It’s very frustrating. Is there some sort of caching issue with Local?
Hi @sambrockway. This isn’t a child theme, no, it’s a theme I’m developing for my employer’s new website. It uses the Underscores starter theme as a base, but I’m modifying it heavily.
I do have a version on the styles, but that doesn’t seem to make any difference with or without it. Sometimes Local won’t even load the correct version of the PHP templates I’ve coded and I’ll have to close the tab and reopen it to show the correct version. So I’m a bit stumped as to why it’s doing this.