In this tutorial we will see how to create single post template for our theme.
1. Open your blog page and click the link for viewing a post. It doesn’t work. So now we will create single post style or template. 2. Duplicate the home.php file and save as single.php. 3. This single.php is your default single post template. 4. Remove the excerpt and Readmore and add content function. 5. Remove the top title also. 6. Now your single post is ready.
7. View my previous tutorial and this video to understand the code changing.
<!-- Marketing messaging and featurettes ================================================== --> <!-- Wrap the rest of the page in another container to center all the content. -->
<div class="container marketing">
<!-- Three columns of text below the carousel --> <div class="row">
In this lesson, we will learn how to style default Blog page in WordPress. Please view my previous tutorials for creating blog page.
1. First go to you theme folder, open home.php file.
2. Here you can modify your blog page.
3. In our tutorial, Just remove the codes (fully) and add the following code. or you can refer the video for particular edits.
<!-- Marketing messaging and featurettes ================================================== --> <!-- Wrap the rest of the page in another container to center all the content. -->
<div class="container marketing">
<!-- Three columns of text below the carousel --> <div class="row">
In this tutorial, We will see how to create default blog page which is home.php and front-page.php for custom front page.
1. If you are following my previous tutorials, you may be created themes folder and all other files. If not, please view the previous tutorials.
2. In the theme folder, duplicate the page.php and save as home.php . This home.php file is your default blog page. Don't misspell this. Then it won't work.
3. Now it will take your default home page into blog page. If home.php not available, your front page will be your index.php.
4. So we need to create another file for front-page. So duplicate index.php and save as front-page.php.
5. This will automatically take your front page.
6. If you change some settings in Settings -> Reading , in Dashboard , then your front page will not work.
7. So create two new pages from Pages and add it to menus.
8. Now go to Settings -> Reading again . Choose your front page and blog page. and save it.