Front Page Template ?
Hey guys,
Just wondering what happened to the front-page.php template ? I was quite enjoying using this template to make the feel of the design not feel like a stock standard WP theme.. Can i just make a copy of the base.php template and rename it front-page.php ?
Sorry ive not been very active the past few weeks and it would seem ive missed lots of Roots updates.. Thanks again Ben for your work.. the theme and file structure seems like it's progressed very nicely.
Regards, Darren
if you enjoyed using roots before the wrapper you should enjoy using it many times more after figuring out how it works
you won't want to copy base.php most of the time. all you need to do is:
- copy
page.phpto something likepage-home.php - copy
content-page.phpto something likecontent-page-home.php - edit
page-home.phpin the root to reference the newcontent-page-home.phpby doing:get_template_part('templates/content', 'page-home');
then, if you want that page template to be without the sidebar, open lib/config.php and edit roots_sidebar to something like:
if (is_404() || is_front_page() || is_page_template('page-custom.php')) {
ps. please use the google group for questions
Thanks Ben.. Sorry for opening a "Issue" I will join the group for further questions.
Thanks again for your excellent work :)
Regards, Darren
Sorry for asking a question about it here, but this method did work for me i 6.1.0, but now in 6.3.0, I can't seem to get it to work, is this an issue? In google groups ppl are talking about base-home.php :(
The issue with this three files, works too ? base-front-page.php
front-page.php // 1
templates//content-front-page.php
Which method wille better ?
Am I wrong with this way ?
Thanks
avoid a new base template unless absolutely necessary - make a front-page.php and you can keep everything in there, or you can reference a template from the templates/ dir in there
Thanks