Home Forums Gutenberg ACF Block PHP & CSS?


ACF Block PHP & CSS?

  • Hi,

    I’m building some ACF Block.
    I’ve made a template .php and a .css files.

    My question is about optimization & best practices:
    I’ve stored in the .css the static <style></style>
    but I need to adjust some style by using php: <?php echo $mycustomstyle: ?>

    At the moment, I’ve let the <style></style> that needs to be adjusted by php in the .php file…
    but it seems to be reconized as “inline css” and it seem that load the base of my html page, and can’t be minimized by plugin cache.

    I wonder what is the best practices? How/can I put the </style> that needs to be adjusted by php in the .css file?

    thanks in advance.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.