#55529 closed defect (bug) (duplicate)
Full site editing - Custom template issue
Reported by: | Nenad Obradovic | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.9.2 |
Component: | Editor | Keywords: | |
Focuses: | template | Cc: |
Description
Hello,
I used the TwentyTwentyTwo theme and I created/used a plugin with the custom page template functionality
<?php /* Template Name: Custom Full Width */ get_header(); ?> <main id="custom-page-content"> <?php if ( have_posts() ) { while ( have_posts() ) : the_post(); the_content(); endwhile; } ?> </main> <?php get_footer();
if you set that template for some page you will not be able to customize the footer and header template part area because the TwentyTwentyTwo theme doesn't have it and the default WordPress function locate_template will load/include for example wp-includes/theme-compat/footer.php file.
I think it will be great if you can improve locate_template or block theme templates functionality to load/include the default footer template part from the block theme instead of wp-includes/theme-compat/footer.php
Best regards,
Nenad Obradovic
Change History (2)
Note: See
TracTickets for help on using
tickets.
Duplicate of #55023.