• Resolved macambulance

    (@macambulance)


    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)
  • Plugin Support mohsinbsf

    (@mohsinbsf)

    Hi @macambulance,

    Thanks for getting in touch with us.

    I am afraid it is not possible at the moment. We’d love to take this as a suggestion. I will surely convey your feedback to our concerned developers. We are always keen to listen to our customers and to receive their feedback. This is the best way to improve our products and services and maintain our client’s satisfaction. ??

    Have a nice day!

    Thread Starter macambulance

    (@macambulance)

    thanks for the update. Is there a function which is called on page-load which generates the CSS? Or anything you can point me towards building my own method of triggering the generation?

    Plugin Support mohsinbsf

    (@mohsinbsf)

    Hi?@macambulance,

    We have a hook through which you can load Spectra assets. You can learn more about the hook from this guide: https://wpspectra.com/docs/assets-api-third-party-plugins/

    Have a nice day!

    Thread Starter macambulance

    (@macambulance)

    perfect, thanks!

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.