If you have already have a blog but then decided to add in some static pages to make it look like a normal website. Can you do that?
Or, you are thinking to move your blog from root directory to a new directory called “blog” and the default home page is a static page with no blog posts. Can you do that?
The answer is “Yes!”. In fact, it is quite easy to achieve, not as complicated as one thought.
- Log in to your wordpress.
- Create 2 new pages at the “Pages” section.
- One page named it as “Home” and the other one named it as “Blog”.
- Go to the “Settings” at the left hand panel and click on “Reading”.
- At “Front Page Displays”, select “A static page (select below)”.
- At the “Front page”, select “Home” and at the “Posts Page”, select “Blog”.
- Click on the below green button “Save Changes” to save.
- Now go to your site and you will see a new tab “Blog” added to the navigation.
- And your site home page is a new home page (if you have not added in any content, it is displayed as blank page but with header and navigation shown).
Two “Home” Tabs Found in the Navigation Bar
- If your site is showing two “Home” tabs in the navigation bar, you will have to get rid of the old “Home” tab. This can be done by editing your “header.php” file.
- In your wordpress dashboard, click on “Appearance” on the left hand panel.
- Then click on “Editor” and “Header” on the right hand side.
- You may like to backup a copy of this file before making changes.
- Copy the whole content of the file, open your notepad editor and paste in the content.
- Save the file as “header.php” into your hard disk.
- Go back to header.php in the wordpress, look for the line that looks something like
<li> ..... ..... Home ..... .... </li>
- For example as follow:
<li class="<? if(is_home()) echo 'current_page_item'; ?>"> <a href="<?php echo get_option('home'); ?>/">Home</a></li>
- Remove this line and click “Update File” to save.
- Go to your site and you should see now, you have only one “Home” tab.
- Next, check your blog section by clicking on the “Blog” tab.
- All the blog posts should move over the “Blog” tab, the URL should look like www.mydomain.com/blog now.
If you are concerned that the URLs of the blog posts will change but it will not be the case as they will still remain the same as before. That’s the beauty of using this method.