Support » Plugin: The Events Calendar » 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

    • This topic was modified 2 years, 8 months ago by ckanitz.
    • This topic was modified 2 years, 8 months ago by ckanitz.
Viewing 1 replies (of 1 total)
  • Thank you for your update which I have found helpful! I thought it was a typo when I read “mytheme/tribe/events/” and so created file under “tribe-events/”.

Viewing 1 replies (of 1 total)
  • The topic ‘Gutenberg: the_content() outputs all blocks’ is closed to new replies.