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

Blocks patterns broken #69

Open
classikd opened this issue Apr 5, 2022 · 1 comment
Open

Blocks patterns broken #69

classikd opened this issue Apr 5, 2022 · 1 comment

Comments

@classikd
Copy link

classikd commented Apr 5, 2022

Hello,
Since Wordpress 5.9.2, blocks patterns containing getwid blocks are broken.
Font Awesome icons are not displayed, Slick Sliders don't work, Section blocks have unwanted spaces, and so on...
Please take a look at that.
Thank you

@classikd
Copy link
Author

classikd commented Apr 6, 2022

I think that is the same probleme that I encountered in Full Site Editing.
https://wordpress.org/support/topic/any-updates-or-ending/

The problem is that Iframes don't inherit style from the page, so Font-awesome icons are not loaded.
To fix it I manually added a line to fonts-icon-manager.php :
add_editor_style( array( getwid_get_plugin_url( 'vendors/fontawesome-free/css/all.min.css' ) ) );

One more thing, the add_editor_style() function adds style to the <head> so relative pathes to woff files are broken.
I tried to replace with absolute path and now Font awesome Icons are working great !

I don't know what is the clean solution but the plugin has to be corrected, If I find it I will do a PR.

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

No branches or pull requests

1 participant