Invalid selector in block.json
-
Aloha John, we noticed that the selector defined in block.json (
.wp-block-breadcrumb-trail) does not match the class of the rendered block (.wp-block-bcn-breadcrumb-trail): https://plugins.trac.wordpress.org/browser/breadcrumb-navxt/trunk/includes/blocks/build/breadcrumb-trail/block.json#L79Consequently, we cannot target the block in a theme’s theme.json file to apply custom styles since the generated CSS will target the class specified in block.json above. This should be a simple fix by editing the selector in block.json above and changing it to
.wp-block-bcn-breadcrumb-trail.Thanks and let us know if you need any more details or screenshots! We’ve been using the plugin for years and it’s just perfect.
The topic ‘Invalid selector in block.json’ is closed to new replies.