Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quadrat: Override BCB's index.html template #3651

Merged
merged 4 commits into from
Apr 14, 2021

Conversation

MaggieCabrera
Copy link
Contributor

@MaggieCabrera MaggieCabrera commented Apr 14, 2021

This PR overrides the html template when we are on the home or front page and loads index.php instead.
When using do_blocks on index.php we need a header and footer templates to be defines or else we won't have css (when using html templates, the missing html from header and closing tags for the footer are provided by gutenberg, this is no longer the case when the template is built with php)

@MaggieCabrera MaggieCabrera requested a review from a team April 14, 2021 10:15
@MaggieCabrera
Copy link
Contributor Author

I also changed the query block for the content block since the home page can also be a static page, and that wasn't working with the current template.

Copy link
Contributor

@danieldudzic danieldudzic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That template override works fine as a temporary solution. Ideally, this should be core WordPress functionality in the future.

@MaggieCabrera
Copy link
Contributor Author

That template override works fine as a temporary solution. Ideally, this should be core WordPress functionality in the future.

100% agree, I commented on this GB issue about that and added a comment on our code, I expect this to not be needed in the future

@MaggieCabrera MaggieCabrera merged commit 475049f into make/quadrat Apr 14, 2021
@MaggieCabrera MaggieCabrera deleted the index-template-override branch April 14, 2021 10:41
@MaggieCabrera MaggieCabrera mentioned this pull request Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants