[wp-trac] [WordPress Trac] #19627: Themes should be able to opt-in to a static front page

WordPress Trac noreply at wordpress.org
Mon Aug 3 23:31:23 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 greenshady):

 Forget about demos and other stuff.  Let's get back to the original issue
 posted:

 > A theme should be able to register that they are designed to have a
 static front page by default. Core should then pick up on this as part of
 the activation process and allow them to pick or create a page, or ignore
 it and show posts on the front.

 In a nutshell, what we're looking to do is have WP provide an option to
 use the static front page on theme activation.  No need to go overboard
 with this.

 If you want to completely change how the entire front page system works,
 that's a much larger discussion, will probably take longer to implement,
 and will have backwards-compatibility concerns.  Taking a step back and
 looking at how this might work within the *current* system is probably the
 best bet.

 Here's how a solution should work based on the proposal:

 * Theme has `add_theme_support( 'static-front-page' )` (or something to
 that effect).
 * User activates theme.
 * WordPress notices that the theme supports a static front page.
 * WordPress asks user if they would like to use the theme's static front
 page.
 * User can select to utilize the theme's static front page or opt to show
 their blog posts.
 * If user chooses the static front page, they can select a page (or create
 a new page).

 This can be tackled with something as simple as an admin notice and would
 be a huge first step.

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


More information about the wp-trac mailing list