Spectra 2.12.6 Blocks – regenerate CSS for all pages
-
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 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Spectra 2.12.6 Blocks – regenerate CSS for all pages’ is closed to new replies.