Lumina Theme Architecture

front-page.php

File: front-page.php Theme: Lumina

The Front Page template file

This template is written in PHP so it can conditionally handle the front page of the website. It intentionally flips when index.html and home.html templates get loaded.

If the user has the BLOG set as the front page, it loads the index.html template which includes the template part Home Page Content Top. This intentionally bypasses home.html which we instead use to display the blog when a static home page is set. Further, the Home Page Content Top only loads on the first page of the blog, not on subsequent pages.

If the user has a STATIC PAGE set as the front page, then it loads that page, but also sets the blog page to use the home.html instead of the index.html template.

Tags
since
1.0

Table of Contents

On this page
  • Table Of Contents

Search results