Reusable blocks
-
Since you only enqueue the css for CoBlocks if CoBlocks is used on a post, reusable blocks aren’t working properly. There is simply no css for it. I can understand, and admire, the idea of not loading unused css on pages, but this fails and has to be fixed.
What I did to get around this is to enqueue the style manually in my theme so that it’s always there:
wp_enqueue_style( 'coblocks-frontend', plugins_url( 'coblocks/dist/style-coblocks-1.css' ), '', '');
A better solution would be if you, in the plugin, also check for CoBlocks in reusable blocks in
public function block_assets()
.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Reusable blocks’ is closed to new replies.