Wednesday, September 7, 2011

Some xHTML Widget Changes In The Blog

Hi Readers,

Recently as an evolutionary measure to make the blog more suitable, we have made some changes in the xHTML template of the blog. The blog uses xHTML template to render the blog page and there are many a xml elements from google to create the same. Click here for more details!
Click here to learn more about xHTML!

A blog writer faces many questions regarding the articles, their sources, why they were written, the theme of the blog and other related queries!

By default the template of a Normal Blog's Home page consists of the articles in a reverse chronological order. It neither leaves nor provides any scope for having an actual Home page where you can welcome the reader and make available all the answers to the frequently asked questions, like we mentioned above!

If a blogger needs have the above feature then she/he needs to bend it like Beckham. Google-Blogger has given bloggers the freedom to modify the core of their own blogger site i.e. the xHTML Template file, which can be edited in the design mode of the blogger to modify as well as enhance the features!

The problem statements:
a) Instead of displaying the blog articles in the home page of the blog, they must only be accessible through the links available in the archive sidebar.
b) The home page must only contain a static welcome text to explain about the author and the articles in the blog.
c) While displaying none of the articles on the home page there must not be any label displayed with the misleading message that there are "0 Posts" to be shown. It appears by default if we choose to show none of the articles.

Solutions:
a) For this to happen one needs to first switch back to the old interface if one had recently switched to the new one. Go to {Dashboard>>Settings>>Formatting>>Show at most} & enter the number of posts as "0". Done!!

b) The  basic steps are:
  1. Using the layout feature in the design mode add a Text widget.
  2. Add the desired welcome text in it.
  3. Modify the xHTML Template file according to the instructions in the blog link given below. The modification is to add a if condition that will display the Text Widget only when displaying the homepage of the blog.
Follow the steps given here.

c) The  basic steps are:
  1. Modify the xHTML Template file according to the instructions in the blog link given below. The modifications is to remove the xHTML content which renders the label and the text in it.
Follow the steps given here.

After these changes my blog sites' home pages look like these, click here, here, here and here.

In the future we are looking forward to more daring and innovative xHTML changes for better functionalities!

Happy Blogging!

No comments:

Post a Comment