[theme-reviewers] Front Page Implementation

Srikanth Koneru tskk79 at gmail.com
Thu Jun 12 20:21:42 UTC 2014


you are correct, also we can choose between page or lists of blog posts
even with index.php and without front-page.php so you are correct again so
i guess its not really necessary


On Fri, Jun 13, 2014 at 1:44 AM, Emil Uzelac <emil at uzelac.me> wrote:

> Not really, theme uses front-page.php as  * Template Name: Front Page
>
> See http://theme.wordpress.com/themes/motif/
>
> Also, WPCOM does not allow what we do at WPORG either :)
>
> For example it must be set like this:
>
> Forefront has three custom page templates that are great for business and
> corporate websites.
>
> *Front Page Template*
>
> As the name suggests, this template is perfect for the front page where
> you can introduce your business to the world. Rich, powerful, and flexible,
> the front page template includes three optional widget areas, a big leading
> image with a call-to-action, and two testimonials. (See the image at the
> top.)
>
> When you first activate Forefront, you’ll see your posts in a traditional
> blog format but if you’d like to use this template as the front page of
> your site, here is the instruction.
>
>    1. Create or edit a page, and assign it to the Front Page template
>    from the Page Attributes module.
>    2. Go to *Settings → Reading* and set “Front page displays” to “A
>    static page”.
>    3. Select the page you just assigned the Front Page template to as
>    “Front page” and then choose another page as “Posts page” to serve your
>    blog posts.
>
>
>
> On Thu, Jun 12, 2014 at 3:02 PM, Srikanth Koneru <tskk79 at gmail.com> wrote:
>
>> http://theme.wordpress.com/themes/forefront/ seems to have same meaning
>> as we have here, but will only know when I submit a theme.
>>
>>
>> On Fri, Jun 13, 2014 at 1:26 AM, Emil Uzelac <emil at uzelac.me> wrote:
>>
>>> For instance this meaning is equal to zero if you are submitting to
>>> WordPress.com ;)
>>>
>>>
>>> On Thu, Jun 12, 2014 at 2:53 PM, Srikanth Koneru <tskk79 at gmail.com>
>>> wrote:
>>>
>>>> It has a lot of meaning :)
>>>> It gives you an option to show a page as index(in traditional web dev
>>>> sense) and switch between list of posts or page, otherwise you would have
>>>> to manually edit the index.php  or build your own option setting to do that.
>>>>
>>>>
>>>> On Fri, Jun 13, 2014 at 1:16 AM, Emil Uzelac <emil at uzelac.me> wrote:
>>>>
>>>>> At this time and unless WordPress core makes the changes, no not
>>>>> really.
>>>>>
>>>>> front-page.php should take the precedence over all other Templates and
>>>>> it does not :)
>>>>>
>>>>> I personally find this Template confusing.
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Jun 12, 2014 at 2:42 PM, Stephen Cui <scui2005 at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Thanks for the link. I read and have the following conclusion.
>>>>>>
>>>>>> - The theme has to display blog index if setting is "posts"
>>>>>> - The static page can only be displayed if setting is 'page' (static
>>>>>> page).
>>>>>>
>>>>>> In other words, implementing front-page.php has not much meaning.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Jun 12, 2014 at 3:08 PM, Emil Uzelac <emil at uzelac.me> wrote:
>>>>>>
>>>>>>> You'll find all of the answers right here
>>>>>>> <http://www.chipbennett.net/2013/09/14/home-page-and-front-page-and-templates-oh-my/>
>>>>>>> .
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Jun 12, 2014 at 2:00 PM, Stephen Cui <scui2005 at gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I know we had many discussion regarding the front-page.php vs.
>>>>>>>> home.php. But I am still confused about
>>>>>>>>
>>>>>>>> *Option 1 (front-page.php):*
>>>>>>>>
>>>>>>>> if ( 'posts' == get_option( 'show_on_front' )  ) {
>>>>>>>>    // Load home.php
>>>>>>>> } elseif ( 'page' == get_option( 'show_on_front' )  ) {
>>>>>>>>   // Load page's template part
>>>>>>>> }
>>>>>>>> else {
>>>>>>>>    // Front Page Implementation
>>>>>>>> }
>>>>>>>>
>>>>>>>> *Option 2 (**front-page.php)**:*
>>>>>>>>
>>>>>>>> if ( 'page' == get_option( 'show_on_front' )  ) {
>>>>>>>>   // Load page's template part
>>>>>>>> }
>>>>>>>> else {
>>>>>>>>    // Front Page Implementation
>>>>>>>> }
>>>>>>>>
>>>>>>>> *Option 3 (**home-page.php)**:*
>>>>>>>>
>>>>>>>> if ( 'page' == get_option( 'show_on_front' )  ) {
>>>>>>>>   // index loop
>>>>>>>> }
>>>>>>>> else {
>>>>>>>>    // Home (or. Front ) Page Implementation
>>>>>>>> }
>>>>>>>>
>>>>>>>> My questions are:
>>>>>>>>
>>>>>>>> - If option 2 and 3 are acceptable.
>>>>>>>> - If only option 1 is acceptable, the only time  front page
>>>>>>>> implementation will be displayed is when user choose Static without
>>>>>>>> choosing any page as Front page.
>>>>>>>>
>>>>>>>> Regards
>>>>>>>>
>>>>>>>> Stephen Cui
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> theme-reviewers mailing list
>>>>>>>> theme-reviewers at lists.wordpress.org
>>>>>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> theme-reviewers mailing list
>>>>>>> theme-reviewers at lists.wordpress.org
>>>>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> theme-reviewers mailing list
>>>>>> theme-reviewers at lists.wordpress.org
>>>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> theme-reviewers mailing list
>>>>> theme-reviewers at lists.wordpress.org
>>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> theme-reviewers mailing list
>>>> theme-reviewers at lists.wordpress.org
>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>
>>>>
>>>
>>> _______________________________________________
>>> theme-reviewers mailing list
>>> theme-reviewers at lists.wordpress.org
>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>
>>>
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140613/063de77d/attachment-0001.html>


More information about the theme-reviewers mailing list