[wp-trac] [WordPress Trac] #36402: front-page.php behavior for child themes

WordPress Trac noreply at wordpress.org
Tue Dec 3 10:10:57 UTC 2024


#36402: front-page.php behavior for child themes
-------------------------+------------------------------
 Reporter:  cristovaov   |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:
 Severity:  minor        |  Resolution:
 Keywords:  close        |     Focuses:  template
-------------------------+------------------------------
Changes (by poena):

 * keywords:   => close


Comment:

 If the parent theme includes front-page.php, then the child theme uses
 this template unless the child theme includes it's own front-page.php
 file.

 I don't think that the front-page.php template should be handled in a
 different way from other template files and I think changing how this
 template works would be a breaking change and cause for confusion.

 The front-page.php is used to display the static page or the blog, so this
 suggestion that was mentioned is already possible:

 >This allows a child theme to include its own front-page.php template or
 setting the front-page to a page >from the 'Reading' setting.

 Because of this I recommend closing this ticket.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/36402#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list