Don't miss these Blodger posts!

Friday, 16 March 2012

The most basic Blogger template


Confused by XML b:widget:ID skins wrappers etc, then you are not the only one. (and avoid all by just using pre-designed templates from Blogger or other sources and tweaking them via layout designer)
Following a discussion on Google groups
http://groups.google.com/group/bloggerdev/browse_thread/thread/21fa1f65c12d120d?pli=1
the code below was expressed as a view of most basic blogger template after contributions by Holmes, David Kutcher, and Alain Christian.
There is a difference in what is accepted as the most basic by new template designer and old one, and the old one (as of Mar 2012) now appears to prompt for a variety of  widget declarations or you may lose them. (how fatal and what recovery options have now been tested by author as yet ..)
So after backing up your template in your test blog, copy in the following and create the most basic blog ... the view isn't that flattering but obviously can be worked on if you fancy working from the bottom up. 


<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
        <b:include data='blog' name='all-head-content'/>
        <title>
        <b:if cond='data:blog.pageType == &quot;item&quot;'>
                <data:blog.pageName/> : <data:blog.title/>
        <b:else/>
                <data:blog.pageTitle/>
        </b:if>
        <b:if cond='data:blog.url == data:blog.homepageUrl'> : HOME TITLE ADD-ON</b:if>
</title>
        <meta content='' name='description'/>
        <meta content='' name='keywords'/>
        <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js'/>
<b:skin><![CDATA[
* { margin:0; padding:0; border:0; }
#navbar-iframe {
        height:                 0px;
        visibility:             hidden;
        display:                none;
}

body {
        font-size:                      84.5%;
        font-family:            Arial,sans-serif;
        color:                          #000000;
        background-color:       #cccccc;
}

div#wrapper {
        margin: 0 auto 0 auto;
        width:  800px;
}

]]></b:skin>
</head>
<body>
<div id='wrapper'>
<b:section class='main' id='main'>
<b:widget id='Header1' locked='true' title='terry most basic (Header)' type='Header'/>
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'/>
<b:widget id='BlogArchive1' locked='false' title='Blog Archive' type='BlogArchive'/>
<b:widget id='Attribution1' locked='false' title='' type='Attribution'/>
<b:widget id='Profile1' locked='false' title='Blog Profile' type='Profile'/>
</b:section>
</div>

</body>
</html>

Hope I haven't mistyped anything, er 

Explanation of these to follow (or update to this post - won't be long)
There will be sections added on a template how to section


Related Articles :


Stumble
Delicious
Technorati
Twitter
Facebook

3 comments:

Ivailo Bakalov said...

If you are looking for a 2016 Lyft promo code, you are in the right place. This page will go in depth about Lyft promo codes, ways for existing Lyft users to earn ride credit, provide an explanation of what Lyft is and how it works, as well as provide information regarding the best Lyft alternatives available to users.

Деян Кривошеенко said...

Whats up guys, i found the most innovative online platform for trading using binary options
in this fast growing market with smart services. It is headed and operated by not only professional but
also dedicated individuals with adequate knowledge in the field of trading. The funds are protected by high quality
and updated security measures to assure the safety of the account.

Travis Smith said...

Good web site you have got here.. It's difficult to find high-quality writing like yours nowadays. I truly appreciate people like you! Take care!! msn hotmail sign in

Post a Comment

 

Blodger Copyright © 2010 LKart Theme is Designed by Lasantha


Downloaded from Free Templates

Modified to LK Magazine v2 Pimp No6 and Copyright © 2013 by Blodger