I’m having a bit of an issue changing the blog home page (otherwise known as the Posts page) to be except only. I am trying to do this without a plugin.
It seems that when I go to Settings > Reading I can choose a “homepage” for my posts. I have created a page, called it “Blog” and made that page the Posts page.
However, no matter what I do, I have the full content showing in the blog “homepage.” I am going back to the internet now to find the answer. I know it is a simple one, and part of the reason I wrote this article was so I had two posts to work with instead of just one. BRB!
OK< so it’s 15 minutes later and I found the answer on this website called zeaks.org. I forgot to mention I’m using a modified version of the twentytwelve theme, so this advice works perfectly.
Edit Template files
Open content.php and around line 33 find
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
This conditional tells your theme to display excerpts only for the search page. To make it also display them on the home page add is_home to it like this.
<?php if ( is_search() || is_home() ) : // Display Excerpts for Search and Homepage ?>
Save and close content.php and refresh your site. You should see posts displayed as excerpts, but there’s more you can do.
This even works for the blog homepage (AKA the Posts page), even though the code is calling it home page. Apparently I need to learn more about how the posts page is created and how it uses the homepage template.
Almost every web designer I talk to says the same thing about his portfolio and/or website: “I’m so busy working on other people’s websites that I don’t have time to update my own.”
So I will spare you the excuses, I’m sure you’ve heard them. Make no mistake, the old site needed updating, and I have finally updated it. However, you may notice that only the homepage has any content. That’s right, I was so tired of the old design that I launched the prototype.
Crazy? Not really. It will fill up quick and in a few months will be looking fine. How does this benefit you?
Well, if you want to see how a website grows from concept to design, I’m letting you watch in real time. Come back and check out the changes, updates and blog posts. I will be writing on various things I find interesting, especially geared toward entrepreneurialism.
Or maybe I will be too busy working on your website to work on my own. Contact me now.