motopress / getwid

Extra Gutenberg blocks for building seamless and aesthetic websites in the WordPress block editor.
https://motopress.com/products/getwid/
GNU General Public License v2.0
36 stars 14 forks source link

Blocks patterns broken #69

Open classikd opened 2 years ago

classikd commented 2 years ago

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 commented 2 years ago

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.