[wp-trac] [WordPress Trac] #55529: Full site editing - Custom template issue

WordPress Trac noreply at wordpress.org
Tue Apr 5 10:28:07 UTC 2022

#55529: Full site editing - Custom template issue
 Reporter:  Nenad Obradovic  |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Themes           |    Version:  5.9.2
 Severity:  normal           |   Keywords:
  Focuses:  template         |

 I used the TwentyTwentyTwo theme and I created/used a plugin with the
 custom page template functionality

 Template Name: Custom Full Width

         <main id="custom-page-content">
                 if ( have_posts() ) {
                         while ( have_posts() ) :


 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**

 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

Ticket URL: <https://core.trac.wordpress.org/ticket/55529>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list