Blog Help
  Home arrow Blog Help arrow Page 4 - Setting a Static Front or Main Page in Blogge...
Affiliate Promotion  
Blog Help  
Domain Name Tips  
How To  
Newsletter Marketing  
Online Business Help  
Search Engine Tricks  
Web Development  
Web Hosting  
Website Advertising  
Website Content  
Website Marketing  
 Webmaster Tools
 
Base64 Encoding 
Browser Settings 
CSS Coder 
CSS Navigation Menu 
Datetime Converter 
DHTML Tooltip 
Dig Utility 
DNS Utility 
Dropdown Menu 
Fetch Content 
Fetch Header 
Floating Layer 
htaccess Generator 
HTML to PHP 
HTML Encoder 
HTML Entities 
IP Convert 
Meta Tags 
Password Encryption
 
Password Strength
 
Pattern Extractor 
Ping Utility 
Pop-Up Window 
Regex Extractor 
Regex Match 
Scrollbar Color 
Source Viewer 
Syntax Highlighting 
URL Encoding 
Web Safe Colors 
Whois
 
Forums Sitemap 
Mobile Linux 
APP Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
BLOG HELP

Setting a Static Front or Main Page in Blogger
By: Codex-M
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2009-04-20

    Table of Contents:
  • Setting a Static Front or Main Page in Blogger
  • Google Classic Blogger Template Structure and Code
  • Formulating the Code to Edit the Template
  • Implementation and Testing of the Code

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Setting a Static Front or Main Page in Blogger - Implementation and Testing of the Code


    (Page 4 of 4 )

    We can now implement this in any Blogger Classic Template; some versions will show the changes better than others. This can also affect some AdSense banners if you have them; you can put this on after making adjustments. Below are the simple steps you need to follow.

    1.  Make sure that you are using a Google Blogger Classic Template. If not, then convert to a Classic Template, by going to Dashboard---Layout---Edit HTML and then scrolling below the page to find "Revert to Classic Template."

    Important: note that converting to the Classic template will drastically change the view of the blog.

    2.  Go to Dashboard---Settings---Formatting, change it to one post per main page, and then click Save.

    3.  Go to Dashboard---Template, then scroll down the code to somewhere in the middle and look for: (highlight it all) IMPORTANT: Do not forget to back up  your template first.


    <!-- Begin content -->

    <div id="content">


    <!-- Begin main column -->

    <div id="main">


    <Blogger>


    <BlogDateHeader>

    <h2 class="date-header"><$BlogDateHeaderDate$></h2>

    </BlogDateHeader>

     

     

    <!-- Begin .post -->

    <div class="post"><a name="<$BlogItemNumber$>"></a>

     

    <BlogItemTitle>

    <h3 class="post-title">

    <BlogItemUrl><a href="<$BlogItemUrl$>" title="external link"></BlogItemUrl>

    <$BlogItemTitle$>

    <BlogItemUrl></a></BlogItemUrl>

    </h3>

    </BlogItemTitle>

     

    <div class="post-body">

    <p>

    <$BlogItemBody$>

    </p>

    </div>

     

    <p class="post-footer">

    <em><$I18NPostedByAuthorNickname$> @ <a href="<$BlogItemPermalinkUrl$>" title="permanent link"><$BlogItemDateTime$></a></em>

    <MainOrArchivePage><BlogItemCommentsEnabled>

    <a class="comment-link" href="<$BlogItemCommentCreate$>"<$BlogItemCommentFormOnclick$>><span style="text-transform:lowercase"><$I18NNumComments$></span></a>

    </BlogItemCommentsEnabled><BlogItemBacklinksEnabled>

    <a class="comment-link" href="<$BlogItemPermalinkUrl$>#links"><span style="text-transform:lowercase"><$I18NLinksToThisPost$></span></a>

    </BlogItemBacklinksEnabled>

    </MainOrArchivePage> <$BlogItemControl$>

    </p>

     

    </div>

    <!-- End .post -->


    4.  Highlight all of the above and replace it with this:


    <!-- Begin content -->

    <div id="content">


    <!-- Begin main column -->

    <div id="main">


    <Blogger>


    <!-- Begin .post -->

    <div class="post"><a name="<$BlogItemNumber$>"></a>

     

    <Itempage><BlogItemTitle></Itempage>

    <Itempage><h3 class="post-title">

    <BlogItemUrl><a href="<$BlogItemUrl$>" title="external link"></BlogItemUrl>

    <$BlogItemTitle$>

    <BlogItemUrl></a></BlogItemUrl>

    </h3><Itempage>

    <Itempage></BlogItemTitle></Itempage>

     

    <MainPage>

    <div class="post-body">


    <br></br>


    Insert homepage content here......................


    <br></br>


    </div>

    </MainPage>

    <ItemPage>

    <div class="post-body">

    <p>

    <$BlogItemBody$>

    </p>

    </div>

    </ItemPage>

    <ArchivePage>

    <div id="main">

    <p>

    <a href="<$BlogItemPermalinkURL$>"><FONT SIZE=3><$BlogItemTitle$></FONT></a>

    </p>

    <br />

    </div>

    </ArchivePage>

    <Itempage><p class="post-footer">

    <em><$I18NPostedByAuthorNickname$> @ <a href="<$BlogItemPermalinkUrl$>" title="permanent link"><$BlogItemDateTime$></a></em>

    <MainOrArchivePage><BlogItemCommentsEnabled>

    <a class="comment-link" href="<$BlogItemCommentCreate$>"<$BlogItemCommentFormOnclick$>><span style="text-transform:lowercase"><$I18NNumComments$></span></a>

    </BlogItemCommentsEnabled><BlogItemBacklinksEnabled>

    <a class="comment-link" href="<$BlogItemPermalinkUrl$>#links"><span style="text-transform:lowercase"><$I18NLinksToThisPost$></span></a>

    </BlogItemBacklinksEnabled>

    </MainOrArchivePage> <$BlogItemControl$>

    </p></Itempage>

     

    </div>

    <!-- End .post -->


    5. Click save, and then at the template, carefully replace the section marked "Insert homepage content here..." with your preferred home page content. Also, standard HTML coding will apply, like the use of <p> and <br>, for example.

    6. Test your blog, It should show:

    • Static home page content without the header data, post footer information and a post titles. In other words, you should see a clean display of home page content.

    • Post pages should be not distorted; they should be the same as before.

    • Archived pages should be clean and contain links to important articles written on that date. Also, they should not look distorted. If they do, that particular template is not compatible with these adjustments, or there may have been a mistake in the cut-and-paste process. 

    • The sidebar should be clean and consist of a normal post and archive list.

    This innovation is not guaranteed to work under all conditions. For instance, complex widgets in the content, and certain Classic templates, may not be compatible. But the concept of how to approach the programming is what is important. Good luck!


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

       

    BLOG HELP ARTICLES

    - Create a Vlog
    - Creating a Personal Blog People Actually Wan...
    - Offline Blog Managers
    - Get More from WordPress
    - Improving Blogspot Traffic with Free Google ...
    - LiveJournal: Blogs for All
    - WordPress Security Tips
    - Blogging with Yahoo
    - Sell Songs Online Safely Through Your Blog
    - Are E-Zines Still Relevant?
    - Rewriting URLs and Doing WordPress Redirects...
    - Build a Better Blog
    - Setting a Static Front or Main Page in Blogg...
    - Maximize Crawlability of WordPress Blogs and...
    - Create a Blogging Site

     
    Create the Optimal Architecture for your Critical Applications
    Warburton's the largest independently owned bakery in the UK faced a number of d....

     
    Five Best Practices for Deploying a Successful Service-Oriented Architecture
    This white paper describes the benefits you can expect with SOA, and how IBM can....

     
    Gartner Magic Quadrant for Application Delivery Controllers
    Gartner summarizes its view on Application Delivery Controllers, evaluates stren....

     
    Knowledge is Power
    What you don't know can hurt you, and is likely costing you money and increasing....

     
    Rationalizing the Multi-Tool Environment
    The rationalized multi-tool approach is flexible, scalable and cost effective. I....

     




    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek