Hello,
I’m currently creating a theme with Sage 9.0.10 & Bootstrap preset on Wordpress 5.6 and ran into an issue with plugins:
All plugins using get_header() or get_footer() (e.g. Tribe’s Event Calendar) can’t load the required Blade templates in their default view because header.php and footer.php are missing.
I’m new to sage and understand that they are missing on purpose but isn’t there some code in filters.php that hooks at least the get_header function?
Anyway, what would be the best way to fix this issue by default instead of creating custom templates for each plugin?
I managed to get it working by adding header.php and footer.php similar to the Multisite Support fix.
It’s basically a fallback wrapper when blade templates are not available.
I’m gonna leave the code here for reference: