简体   繁体   中英

Wordpress front-page.php is active, how to add home.php to navigation?

I'm working on some wordpress theme where I used custom front-page.php to be my homepage, home.php is page where I have written posts loop. But the problem is how to include that home.php to my navigation? I have created custom navigation menu, and added some items in it, but I don't know how to add home.php?!

any help, please? :S

Go to pages and create two pages. I'd suggest using the titles 'Home' and 'Blog'.

Go to Settings -> Reading. Choose 'A static page'. Select 'Home' for front page and 'Blog' for posts page.

The templates you've created (front-page.php & home.php) will automatically be applied.

You'll then be able to select the posts page, 'Blog', in the menu editor.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM