Classes placed on dynamic blocks don’t generate css
-
Hi there,
Love the plugin! I’ve come across an issue where classes placed on dynamic blocks (such as the Core Title block and Core Featured Image block) in a Gutenberg single post template (these details may or may not matter) are not generating CSS on the front-end. The back-end is fine as it’s using the tailwind playground script. As soon as I move the classes to a group wrapping the dynamic block (but that isn’t the dynamic block itself) and use Tailwind’s arbitrary selectors to select the dynamic block, the CSS is generated again. I assume this has something to do with timing with how the Gutenberg block content is crawled for templates but I’m not sure. I also tried using the ‘f!windpress/integration/gutenberg/compile:get_contents.post_types’ filter, tried turning the groups into template parts and patterns, etc. Spent a couple hours and nothing seems to be working. In comparison, Winden doesn’t have this issue with the same site (but has a bunch of other bugs I don’t want to deal with). To test this, just create a template for a custom post type, add a title block and featured image block, add some classes directly on those blocks, generate the CSS in Windpress, and view the post type on the front end in a private browser.
Thanks in advance!
- You must be logged in to reply to this topic.