Gutenberg: the_content() outputs all blocks
-
Hello there,
I want to use the events calendar with Gutenberg as well as setup my own events calendar styles/markup within my themes.
My problem: I can’t override the “/src/views/single-event-blocks.php” if I put the contents in “mytheme/tribe-events/single-event-blocks.php”. The plugin always uses the template file of the plugin instead of my theme.For now I can use “mytheme/tribe-events/default-template.php” to “force-override” the single-event template but I’d prefer to do it the right way.“fixed” it by reading the files doc comment. single-event-blocks.php needs to be in “mytheme/tribe/events/”. This is kinda confusing since all other files are loaded from “mytheme/tribe-events/”
Also there is a “bug” with your current gutenberg setup. “the_content()” outputs EVERY block. Therefor things like the time, featured image, export buttons and meta are within the_content() of the single event which should not. Please add a block filter or rethink your metaboxes.
Regards
- The topic ‘Gutenberg: the_content() outputs all blocks’ is closed to new replies.