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

Allow header.php and footer.php fallback if header.html and footer.html parts are not used #56114

Closed
dansdev opened this issue Nov 14, 2023 · 1 comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed

Comments

@dansdev
Copy link

dansdev commented Nov 14, 2023

This was brought up a few years back and there doesn't seem to be anything in place yet - #33989

Currently in templates if you have a .php file with a higher specificity than your .html file, the .php file will take priority in rendering. E.g - if you have singular.html in your /block-templates/ dir, and a single.php in your normal directory, the single.php will take priority over the singular.html.

Integrating this same logic for header.php and footer.php files would be amazing!

@dansdev dansdev added the [Type] Enhancement A suggestion for improvement. label Nov 14, 2023
@jordesign jordesign added the [Block] Template Part Affects the Template Parts Block label Nov 14, 2023
@carolinan
Copy link
Contributor

Duplicate of #33989

@carolinan carolinan marked this as a duplicate of #33989 Jul 30, 2024
@carolinan carolinan added [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed and removed [Type] Enhancement A suggestion for improvement. [Block] Template Part Affects the Template Parts Block labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed
Projects
None yet
Development

No branches or pull requests

3 participants