[wp-trac] [WordPress Trac] #19627: Themes should be able to opt-in to a static front page
WordPress Trac
noreply at wordpress.org
Fri May 29 11:00:16 UTC 2015
#19627: Themes should be able to opt-in to a static front page
-----------------------------+-----------------------------
Reporter: nacin | Owner: koopersmith
Type: feature request | Status: assigned
Priority: normal | Milestone: Future Release
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+-----------------------------
Comment (by chipbennett):
Replying to [comment:44 alex27]:
> > Perhaps the add_theme_support() call could allow for a description
from the theme letting them know about their implementation. A distributed
theme isn't going to be able to line up post slugs or IDs.
> What if theme author could declare the default template that static page
should use in the `add_theme_support`?
>
> '''Themes with custom front page usually include special front page
template''', and users need to get out of Customizer and choose that
template for the static page they just assigned as front page. What if
theme author was able to suggest a default template for that page, that is
applied automatically (but of course can be changed from page edit
screen)?
Wouldn't that be `front-page.php`?
That's why using the template hierarchy correctly is important. If done
correctly, the user doesn't have to select a custom page template.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19627#comment:45>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list