Thursday, 27 March 2008

Change numbers of posts displayed by label

Blogspot already has UI allow our to set the number of posts displayed at main page or displayed by days.

Check this picture below :

But when we click on a label in Label widget, there're many posts displayed.
By default with a blogspot blog, max of posts displayed is 20.
And you need to customize number of posts display by label, do the following :

Go to "Edit HTML" as in picture above. Remember to save your template ( for safety ;) ), and then check the check box "Expand Widget Templates".

Now, press Ctrl+F and find below snippet:

<div class="post-footer-line post-footer-line-2">
<span class="post-labels">
<b:if cond="data:post.labels">
<b:loop values="data:post.labels" var="label">
<a href="data:label.url" rel="tag"><></></a>
<b:if cond="data:label.isLast != "true"">,</b:if>

The snippet above show post's label at (usually) bottom of your post.
Notice the phrase in RED, modify it to customize your posts number displayed:
<a expr:href='data:label.url + "?max-results=3" '
3 is mine, just replace yours.

And, the snippet below is the Label widget:

<b:widget id='Label1' locked='false' title='Labels' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<div class='widget-content'>
<b:loop values='data:labels' var='label'>
<b:if cond='data:blog.url == data:label.url'>
<span expr:dir='data:blog.languageDirection'>
<a expr:dir='data:blog.languageDirection' expr:href='data:label.url'>
<span dir='ltr'>(<data:label.count/>)</span>

<b:include name='quickedit'/>

Change phrase in RED and we done:
expr:href='data:label.url + "?max-results=3" '
Now, test your work and enjoy.
Happy harvest exp.

Friday, 14 March 2008

Add Digg button to blog post

The idea add Digg button to every blog post is very brilliant, isn't it? So, the change that your post to be digg is higher ( as your blog promotion ;) does ).

With blogger, it's very easy to have one same as below :

First, go to your blogspot layout tab and click EditHTML,

check Expand Widget Templates and remember save a copy of your temple ( for safe ) by click Download Full Template.
Then find the phrase below by press Ctrl+F:

Your found like this :

Just copy the script below and paste above the line we found:

Happy harvest exp ;).

Tuesday, 4 March 2008

40 best social netwoks to join!

Each is a door show yourself, your work, your services to the world. ;)

Sunday, 2 March 2008

How to hide blogger navigation bar

Login to blogger; at Dashboard, click Layout. Then, click "Edit HTML"

Find the line below :

/* Variable definitions

and put these code above it.

#navbar {
height: 0px;
visibility: hidden;
display: none;

Happy harvest exp.

How to add meta keyword and description to blogspot

As we known, meta keyword is one important way to optimize your website search ranking. Search engines use meta keyword to filter sites for the search result of querry occured by their search tool. If your keywords is bad, click rate of your site in search result low, your rank will be lower, lower and may be banned out of the list. So, is meta-keyword important?

For blogger users, the question is how to add meta keyword to ours blog? Ya. The answer is:

1. First, sign in to blogger; at Dashboard, click "Layout" tab; then click "Edit HTML".
2. Find this line of code :

<b:include data='blog' name='all-head-content'/>

You could press Ctrl+F to use "Find" function of your browser.

3. Copy three line below and paste after the line we found at step 2.

<meta content='DESCRIPTION' name='description'/>
<meta content='KEYWORDS' name='keywords'/>
<meta content='AUTHOR' name='author'/>

4. Replace the words in red with your appropriated content.

Now your could view your blog and check your meta tags at the page source ( in your browser, click View/Source(Page Source) ).

Happy harvest exp.