Static Home Page Best Practices
-
I realize I set my static home page through the admin panel, and I set my custom-page-template.php for my “Home” page. Now, WordPress instructions state not to apply a template to the blog page, so how does the blog page know what to look like? If the answer is index.htm, should I just put the get_header, get_footer, get_sidebar, and a loop in the index.htm? If it’s not the index.htm, what page affects the default blog posts?
Also, what if my Blog page is supposed to look different than other pages? Is that all supposed to happen in the index.htm, or should I create a custom template for the blog page?
So to recap on best practices, assuming I’ve got this right, it would be the following:
- Static home page – Is set in admin panel, and uses template “page-home.htm”
- Blog page – Uses index.htm by default, and should include the loop, get_header, get_footer, get_sidebar
Am I missing something here? Is this how most of you are creating these two pages?
- The topic ‘Static Home Page Best Practices’ is closed to new replies.