My theme uses the front-page.php file to display a number of items on the front page including a slideshow and some featured items. I have also designed it so the static front page as set in the wordpress settings is displayed as an excerpt within this template. I then planned on having a read more button so the full page could be viewed on it's own without the slideshow etc( i presumed using page.php ) but it appears I've outsmarted myself, as that static page seems to be destined to display using front-page.php according to the WP hierarchy. Can anyone suggest anything that might help me. What i need is some way to tell that page to open in page.php if it's accessed via the read more button.
I would recommend having two static Pages for this arrangement:
- The static page to serve as the Placeholder for your site front page
- The static page to hold the content you want to display as an excerpt on the front page
front-page.php, you simply query static page 2 above, and output
post-excerpt and a permalink. Once the permalink is clicked, the content from static page 2 is then rendered as per normal, via
(If this is a distributed Theme, then you'll want to add a Theme option or other means by which to select the Page ID to query in
front-page.php; otherwise, you can just make the ID static, hard-coded in the template file.)