Support

Account

Home Forums Gutenberg ACF Block styles preview not working in WordPress 5.9

Helping

ACF Block styles preview not working in WordPress 5.9

  • Hello,

    I have some custom ACF block styles created. Their CSS are in the global style-editor.css file. The previews of the block styles worked perfectly before WordPress 5.9. But now it seems that those previews are displayed inside an iframe and cannot read the style-editor.css styles, so they appear unstyled. Is there any solution for this please?

    Thank you in advance

  • I have it. If the editor style css file is added using “add_editor_style” instead of using “enqueue_block_editor_assets” it works.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.