[ad_1]
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!
