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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users