I am using Event Calendar Pro to add a widget of coming events on my home page with a Global Block. I am adding this widget through the Widget Area element in Pro.
When I am on the home page it the widget area displays fine. The plugin’s 4 CSS files are loaded (before the closing BODY tag)
But when I am editing the global block in the editor the widget is not loading any CSS (I assume because the iframe technically doesn’t have a header/footer to load the CSS from the plugin into).
Obviously I can Copy and Paste ALL the CSS from the plugin files into the CSS for the element and get it to render correctly when editing the block, but then I would have double the CSS when save and view on the front end.
Is there a way to ENQUEUE these 4 CSS files on the Global Block editor only?