Underscores.me is a good and lightweight starter theme for WordPress. Later you can customize it according to your needs and usage. In this post, you will get to know about how you can fix the homepage showing all the content of the post. With the solution provided below, you will be able to show only the post title with some lines of the content or say excerpt on the home page.
What is it
If you are using the Underscores.me starter template for your website and wants to customize it according to your needs. Then you might don’t wants to show all the post content on your front page of the site. So, here we’ll fix it.
How to Fix it
To get only the excerpt or some lines of the content of the post on your home page or only the title follow the below steps carefully.
First of all, go to the theme editor.
Now go to the content.php file by opening the template-parts folder.
Now add the following code as shown in the picture below.
This code will show the title of the post and the excerpt with the featured image if the post has one. You can replace the excerpt with none to show only the title on homepage of the site.
Leave a Reply