Spectra 2.12.6 Blocks – regenerate CSS for all pages

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

  • This topic was modified 1 minute ago by macambulance. Reason: Moved to plugins forum

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer