Support

Account

Home Forums Gutenberg ACF Block PHP & CSS?

Helping

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 2 posts - 1 through 2 (of 2 total)

The topic ‘ACF Block PHP & CSS?’ is closed to new replies.