Answer the question
In order to leave comments, you need to log in
Why are css edit results not applied in wordpress?
It was necessary to change the parameters of the scroll-top button. In the WordPress theme editor, I found the corresponding CSS file, changed the settings, updated the file. And as everyone writes and says, everything should be preserved. I open the site, but nothing has changed. Cleaned browser and auto-optimizer caches. Nothing.
Only through VS Code it was possible to change and save the CSS file, followed by uploading to the server. For me it's complicated, not strong in programming. The good man helped. Why are changes not saved through the theme editor in Wordpress? Help solve the problem!
Answer the question
In order to leave comments, you need to log in
In addition to the browser cache, there is also a cache of scripts and styles, I don’t remember if there is a tool for updating them with a separate button in WP, but at least you can search. VS-Code is not the only development tool, in the same way you can get directly into the project's file system directly on the hosting if you have a regular hosting that has an environment with an admin panel.
maybe you have a theme with scss or less. By saving the compiled file directly in the cache, you get what you want, before the cache is cleared)
And the theme editor in the VI - it is possible that the styles that you overwrite have a higher priority in the original files due to a more separate selector. It is possible to prescribe it custom with important once for a try, if it overwrites then look for how to correctly overwrite the selector style without important
Most likely this is a browser cache, solved by refreshing the page with Ctrl + F5. But editing the code is still more convenient and correct through the IDE, editing directly on the site you will definitely break something.
Even better, if you connect scripts and styles with functions wp_enqueue_style()
and wp_enqueue_script()
pass their version. Then the browser itself will download the new version of the file if it has changed.
Read here about the correct connection of styles
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question