# Sage 10: Block based theme support?

**URL:** https://discourse.roots.io/t/sage-10-block-based-theme-support/17294
**Category:** sage
**Created:** 2019-12-18T02:26:57Z
**Posts:** 3

## Post 1 by @strarsis — 2019-12-18T02:26:57Z

I noticed that in sage10 dev branch already support has been added for Gutenberg specific features,  
there are also some Gutenberg related PHP libraries from some contributors.

Is it also planned to make Sage 10 support Block based theme support?  
[https://developer.wordpress.org/block-editor/developers/themes/block-based-themes/](https://developer.wordpress.org/block-editor/developers/themes/block-based-themes/)  
This seems to be an exciting way to also unify Customizr-features and Sidebars to block areas.

---

## Post 2 by @oxyc — 2020-01-05T23:46:52Z

To get `<theme>/block-templates/*.html` files to work you can add the following filter which fixes the paths

```
add_filter('template_include', function ($template_file) {
    global $_wp_current_template_hierarchy;
    $_wp_current_template_hierarchy = array_map('basename', $_wp_current_template_hierarchy);
    return $template_file;
}, 19);
```

---

## Post 3 by @system — 2020-01-29T02:35:41Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
