first, sorry for my english. I’m not a native speaker but i hoppe you can understand what i want.
I’m building a little Pagebuilder with ACF Flexible Content. I have a Hero or Mainteaser Section. There you can chosse a backgroundimage, colors etc.
I have a custom-style.php where i want to write the custom css. After saving a post/page it generates a new .css file where the styles are in.
This works great for one page/post, but if i save another page, the css is overwritten. I know why. So i’m looking for a function, that creates the (mainteaser) css blocks for every new or updated page. I’m not the greatest PHP Guru, so i hope, anyone here has the breaking answer for me. Thanks a lot.