Force Spectra to regenerate CSS files on Page save
-
Hi, I’m using Spectra to build pages, the contents of which are then loaded in via Ajax. The CSS for each page is stored in /wp-content/uploads/uag-plugin/assets/0/ so that’s easy to enqueue.
The only issue is that when you save a page, the various blocks are assigned random IDs and the CSS files are not updated until I browse to the permalink of the page which has just been edited.
Is there a function I can hook into ‘save_post’ to force Spectra to regenerate the CSS for a page when it’s saved rather than when the page is browsed to on the front-end?
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Force Spectra to regenerate CSS files on Page save’ is closed to new replies.