Meanwhile, I have implemented some features of bootScore. And I’ve promptly overloaded my site, as my reader says: She recaps, that I — as far as she has understood — want to flexibly write about several different core topics. This would end up in a listed mishmash, of course! Shall she herself pick out what belongs together?
Why does my homepage offer her such a long list of posts anyway? Why couldn’t she just see the most important things first? Couldn’t she call up the ‘search tools’ from the menu at all? In one fell swoop? And when she needs them, and not when the site means she does? Yes, she is right, my lovely reader! As usual! So let’s reduce our structure:
- Create a page
mylapvia the WordPress backend (= my landing page)
- Create a page
myplpvia the WordPress backend (= my post list page)
- Copy the
index.phpfrom bootScore-main under the name
mylap.phpinto your Cild-Theme.
- In the file
mylap.phpchange the line
The main template fileto
Template Name: mylap (my landing page).
- Also, insert a specific name in the file
Template Name: myplp (my post list page).
- Activate the button
a static pageon
Settings/Reading/Your homepage displays, assign the page mylap to the entry Homepage, and the page myplp to the entry Posts page
- Edit the page
mylapin the WordPress backend and replace Default Template in Page options with the template mylap.
- Add the created page
So, you offer your reader the option to call up an overview of all your posts from the menu: The added menu entry — literally directing to
myplp — is now redirected to
home.php by WordPress.
But if you call your site URL / domain, WordPress does not display home.php anymore, but the page
mylap. As a derivative of the bootSCore-index.php, it also still displays a list of your posts. But — in the next step — you are free to design this page as your landing page — in the way you want. Without limiting the functionality of your page. More about that later.
Here are some traps you can avoid:
- If you don’t give your
phpfiles unique template names, you will despair when assigning the WordPress page
mylapand the template
- If you also assign the template
home.phpwith the template name
myplpto the WordPress page
myplp, you will confuse WordPress: When you call the page myplp from the menu, WordPress organizes the file
home.phpby itself without any further work. You have already organized this with the assignment under
Settings/Reading/Your homepage displays.