ACF Blocks enqueue style in head

630 Views Asked by At

I tried to add acf block tyle via acf_register_block_type, but it is loading in footer. How to place styles in the header?

1

There are 1 best solutions below

0
On

You should add your registration code as an example, but styles (enqueued in the theme or bock) wp_enqueue_style(). Styles enqueued in this way are automatically added to the <head>. It's not common practice for <link rel="stylesheet"> to be added to the end of </body>.