Monday, February 11, 2013

How to set Popular Post widget as a home page for your blog

If Popular Post widget is already added by you into your blog then go to Layout and Remove it.Then go for the following Steps.
 
Step 1: Go to Template of your Blog
Step 2: Click on Edit HTML
Step 3: Search below code
  <b:section class='main' id='main' showaddelement='no'>  

Step 4: Put this code above step 3 code as shown below
 <b:if cond='data:blog.url == data:blog.homepageUrl'>  
 <b:section class='tabs' id='crosscol1' maxwidgets='1' showaddelement='yes'>  
 <b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'/>  
 </b:section>  
 </b:if>  

Above Code Screenshot within red rectangle

Step 5: Put below code as shown in below Screenshot's red rectangle.
 <b:if cond='data:blog.url != data:blog.homepageUrl'>  
 <!--MAIN SECTION-->  
 </b:if>  

Screenshot

Click on "Save template" button and when it get saved then click on "Close" button 

Output: 
goto home page of your blog

No comments:

Popular Posts