Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS was added to the iframe incorrectly #1230

Open
hadamlenz opened this issue Apr 26, 2024 · 0 comments
Open

CSS was added to the iframe incorrectly #1230

hadamlenz opened this issue Apr 26, 2024 · 0 comments

Comments

@hadamlenz
Copy link

Version

  • Carbon Fields: 3.6.3
  • WordPress: 6.5.2
  • PHP: 7.4

Expected Behavior

Not to get warnings, load the css using the correct hook

Actual Behavior

Warnings

Carbon-fields-core-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.

carbon-fields-blocks-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.

Container definition

return false

it happens with all the containers I have

Steps to Reproduce the Problem

1.run carbon fields in the site-editor.php
2.look in the browser console

Comments

I don't see enqueue_block_assets or enqueue_block_editor_assets anywhere. There are some pretty good hints as to how to use them in the comments on those pages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant