Creating First Post on Our First Empty Blogger Template

Creating a New Post on Our Previously Created Empty Blogger Template :

Create a new post from Blogger Dashboard → Posts → New Post and write some dummy text to see what happens in published Blog.

After publishing new post, we don’t see any post and our text.

What !!! Nothing to see ! Where is our post? Why this?"

This is why we didn’t tell Blogger where the post will be shown. We didn’t create and select any section for blog. Not only for blog post if we want to show Header, Sidebar, Footer we have to determine those by creating sections and widgets.
 
So now, copy-paste the followings codes in <body></body> tag.
        <b:section class='main' id='main' showaddelement='yes'>
          <b:widget id='Blog1' locked='false' title='Blog Posts' type='Blog' version='1'/>
        </b:section>
And save your theme. If you see the preview  you will see a published post with title and post. That means, you have successfully published your blog. Now visit your blog. Obviously, you will be happy.
If you reload Blogger Editor, you will see some additional codes auto generated.
  • Some code has been generated before <head> tag and
  • Some code has been generated within <b:widget></b:widget>
  • Generated code before <head> tag defines xml version and others to render this template properly.
If you expand the code within blog widget you will see main, post, comment-form, share-button etc.
This is for default tools that is needed when we publish post.

No comments:

Post a Comment