Showing posts with label Blogger Tips. Show all posts
Showing posts with label Blogger Tips. Show all posts

26 February 2013

How To add Attractive "Table of Contents Page" Sitemap in Blogger

blogger

Automate Create and Upload Sitemap.The XML Sitemap file is like a directory of all web pages that exist on your website or blog. Search engines like Google and Bing can use these sitemap files to discover pages on your site that the search bots may have otherwise missed during regular crawling.          It's very important for a publisher To add Sitemap (Table of Contents) in his blog  to make it look more professional. Basically Sitemap (Table of contents) is a place in your blog where all of your post are arranged according to their type.This is the reason why today we will going to Insert a Table of Contents in Blogger.

        We have designed a table of contents for blogger which will update automatically so you don't need to just edit it every time when you publish a new post.If you  publish a new post on your blog it will automatically added  to your Table of Contents Page so it really saves lot of time.This Table of Contents widget will display all of your post well arranged under their specific categories (LABELS). 

Features:
  • The sitemap (Table of Contents) updates automatically when you publish a post
  • It will automatically tag your latest posts as NEW in sitemap (Table of Contents)
  • All of you posts will be well arranged under there given categories (Labels) 


Step to Adding a Table Of Content in Blogger:

To insert an Attractive Table Of Contents (Sitemap) in Blogger Follow these Steps 
  1. Now we will create a new page for our Table of contents Remember:we will create a new page not post.To create a new page go to Blogger >> Pages >> New Page >> Blank Page 
  2. Now Give title to your page i.e "Site Map" and now under EDIT HTML tab (button) paste the following code..

<div dir="ltr" style="text-align: left;" trbidi="on">
<link href="http://srvsriram.googlecode.com/files/acc-toc.css" media="screen" rel="stylesheet" type="text/css"></link><script src="http://srvsriram.googlecode.com/files/toc.js"></script><script src="
http://urcodes.blogspot.com/feeds/posts/summary?max-results=1000&amp;alt=json-in-script&amp;callback=loadtoc"></script><script type="text/javascript">var accToc=true;</script></div>

Now after pasting the code above look for http://urcodes.blogspot.com and replace it with your blog URL and Publish the page now go and view your Amazing Table of Contents.

23 February 2013

Related Posts Widget for Blogger / Blogspot


A Simple Related Posts Widget For Blogger

In the last tutorial, i've been talking about the Related Posts widget that shows related posts along with thumbnails just at the end of your blog articles. Some of the users, however, would prefer a simpler and cleaner displaying of their related posts so that it would show just the posts titles. So let's begin adding it!

related post, related post blogger, blogger tricks

How to add Related Posts Widget to Blogger

Step 1. Go to Template >> Edit HTML and tick the "Expand Widget Templates" checkbox

Step 2. Find the below tag

</head>

Step 3. And just above it, paste the following code:


<!--Related Posts Scripts and Styles Start-->
<!--Remove--><b:if cond='data:blog.pageType == &quot;item&quot;'>
<style type='text/css'>
#related-posts {
float:center;
text-transform:none;
height:100%;
min-height:100%;
padding-top:5px;
padding-left:5px;
margin-top: 20px;
}
#related-posts .widget{
padding-left:6px;
margin-bottom:10px;
}
#related-posts .widget h2, #related-posts h2{
font-size: 17px;
font-weight: normal;
color: black;
font-family: Arial Narrow;
margin-bottom: 0.75em;
padding-top: 0em;
}
#related-posts a{
font-size:16px;
color: #555555;
font-variant:small-caps;
}
#related-posts a:hover{
text-decoration: none;
color: #ffffff;
font-weight: bold;
}
#related-posts ul{
list-style-type:none;
margin:0 0 0px 0;
padding:0px;
text-decoration:none;
text-color:#000000
}
#related-posts ul li{
list-style-type: none;
border-left: 2px solid #1399CF;
border-bottom: 1px dotted #1399CF;
margin-bottom: 3px;
padding-left: 30px;
padding-top:0px;
}

#related-posts ul li:hover{
background-color: #1399CF;
border-left: 2px solid #B3CA3D;
border-bottom: 1px dotted #B3CA3D;
}
</style>
<script type='text/javascript'>
var relatedpoststitle=&quot;Related Posts&quot;;
</script>
<script src='http://helplogger.googlecode.com/svn/trunk/related_posts.js' type='text/javascript'/>
<!--Remove--></b:if>
<!--Related Posts Scripts and Styles End-->

Note:
- if you want to change the size and color of 'Related Posts' title, change the bolded values (17for the font size and black for the color)
-to change the related post title color, replace the value in red;
-to change the background color on mouseover, replace the color value in blue;

Step 4. Now find (CTRL + F) the below line:

    <div class='post-footer'>

Step 5. Just above it, paste the code below:

<!-- Related Posts Code Start-->
<!--Remove-->
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='related-posts'> <b:loop values='data:post.labels' var='label'> <b:if cond='data:label.isLast != &quot;true&quot;'> </b:if> <b:if cond='data:blog.pageType == &quot;item&quot;'> <script expr:src='&quot;/feeds/posts/default/-/&quot; + data:label.name + &quot;?alt=json-in-script&amp;callback=related_results_labels&amp;max-results=6&quot;' type='text/javascript'/></b:if></b:loop>
<script type='text/javascript'> var maxresults=5; removeRelatedDuplicates(); printRelatedLabels(&quot;<data:post.url/>&quot;); </script> </div> <!--Remove--></b:if> <!-- Related Posts Code End-->

Note: In order to change the number of maximum related posts being displayed for each label, search for the code max-results=5 and change the number "5" to any desired number.

Step 6. Save Template

Remove - Subscribe To: Posts (Atom) From Blogger

In some Blogger templates there is a "subscribe to: Posts (Atom)" link, so that the blog visitors can subscribe to your Atom feeds. Considering the fact that many readers use RSS for their blog feeds, many of you could find this link useless. Moreover it occupies space at the bottom of the template and it doesn't look nice at all. In this case you might want to remove it.

How to remove subscribe to: Posts (Atom) link? 

Step 1. Go to your Dashboard >> Design >> Edit HTML;
Step 2. Check "expand widget templates";
Step 3. Find (CTRL + F) this line:

<b:include data='feedLinks' name='feedLinksBody'/>

Step 4. Remove it and Save Template.

How To Change Blogger "Post A Comment" Message

In this tutorial i will show you how to replace the 'Post A Comment' text that appears above the comment form with an image. Also, I will make available to you a few cool images or you can add your own image if you like... so let's get started.



How to replace Post a Comment with an image

To replace  "Post A Comment" message in your Blogger / Blogspot blog follow the next steps:

Step 1. Log in to Blogger, go to your Blogger Dashboard >> Design >> Edit HTML

Step 2. Tick the "Expand Widget Templates" checkbox.

Step 3. Now search (CTRL + F) for the code marked in red:

<a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>
<data:postCommentMsg/></a>


...and for this one too:

<h4 id='comment-post-message'><data:postCommentMsg/></h4>

Step 4. Replace <data:postCommentMsg/> with one of the below images codes:


<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFJT-cnltb11FuahARF7IrF38q8P9_tQV52iAo4WjtqLIeVvnGnJwwprdHpDQ0DgXcKrTGXu6e720KMfOGStUlg-y-TwBBDQHrobO1OtgXBzngQPC8y4RXQhVdVeFA1M_ArKzCXLOOhNs/s1600/leave+a+comment.png" />


<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdso1BYwOboB-vpwn9-ZhWp0E_jnNq5hnTDfTGOT4DENm9IZcatlFAkyoV4l9oDMVyITGYm2O4mPhjouUu8_VG3N_xMfxUnc3zO3XWPSWL6bKbnTZaeW8SrVUO2IF3jZHkaLGD0ZyMW7A/s1600/Post+a+comment+blogger.png" />


<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyH28xpWmRzC3g9GNL21ue6DkcwicP0uFlkvslCBJBagzcZPN65KVtbCiDasQ9clwfqCRiRvQ1-Sl847GlonGnoXwuXIr9h061ThUIXPgv98rcrRz1jzDA0Dm08YQOi1DEj-ROg6yTc44_/s1600/animated+comment+arrow.gif" />


<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsns4EZsFqCJ83ZWTAAYJ8UQF-UDIImoU_79VcdXsMEPsH3h4mJxX8qBVcbuTaXWPv_p6Ez7K22NWf_upNQAxj7PqsYLK7isheCmr0MH54n64UNfvVdbjjNY0NWPDwsuKUQgr9WSs9Hi2O/s1600/leave+a+comment2.png" />


<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgev65j_LerXiLRqTg18nszjzhCKzdhzPuDdqndAeFt5j6EZGTgEPm4-zkm8gt7pTZB5vwTotAMzapEwoolvcUCYFKntjktq5ln1CZihgoKdp3A_sdfkXsL1bO2Nm4-PrphDGrhnWLP1Xdc/s1600/comment.gif" />

You can use your own image instead. Just upload your image on Blogger, switch to Edit HTML tab, copy the image code and replace <data:postCommentMsg/> with your code.

UPDATE! Step 5. The first steps will replace the text only when there are no comments available. To show the image each time new comments are added, we should add the code of the image we want to appear after the 4th of the below code (search 4 times for it):

<p><data:blogCommentMessage/></p>

Step 6. Save Your Template.

How To Add A Comment Count Bubble To Blogger Post Title


Having a comment count bubble to each blogger post titles makes your blog more attractive. This improves not only your comments count but also allows your visitors to see what are the most popular posts on your blog. If a post has more comments then it will show the popularity of posts to your readers and visitors. So let's start adding this feature to your blog post titles by displaying the total count of the comments for your Blogger posts:
Step 1.

 If you are using the old Blogger interface:
  • Go to Dashboard - Design - Edit HTML - Expand Widget Template (make a backup)
If you are using the new Blogger interface:
  • Go to Dashboard - Template - Edit HTML - Proceed - Expand Widget Template (make a backup)
Step 2. Find (CTRL + F) the following piece of code in your template:

]]></b:skin>

Step 3. Place this code just above ]]></b:skin>:

.comment-bubble {
float : right;
width : 48px;
height : 48px;
background : url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEHwwpg5BS-aRDATbkIwb9OVLrUnyZFWYyN0OSftvQFvsZgtd6LV4wTd5eeO6A4pNDTqdB5-2qPyQca7lUoOF1KeRYx-57v7xUD7NSkdKXlHB8Bc_3EY06-jKzYQosX9-3OiaHguStDKRQ/s1600/speech+bubble+green.png);
background-repeat: no-repeat;
font-size : 18px;
margin-top : -15px;
margin-right : 2px;
text-align : center;
}

Step 4. Now find the below code:

<b:if cond='data:post.title'>
<h3 class='post-title entry-title'>

Note: If you can't find it, search this code instead:

<b:if cond='data:post.title'>
      <h3 class='post-title entry-title' itemprop='name'>

Step 5. Add this code immediately after it:

<b:if cond='data:post.allowComments'>
<a class='comment-bubble' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick' style='color: #ffffff; font-size: 18px; font-weight: bold;'><data:post.numComments/></a>
</b:if>

Note:
- to change the color of the comments number, replace #ffffff with the hex value of your color;
- to change the font size, increase/decrease the 18px value;

Step 6. Now Preview your template and if everything is ok, Save the Template.

You can choose one of these images below (Right click on the desired image and select "Copy Image Address/Location" - paste it instead of the red code from step 3)

bubble comment count, bubble blogger postsblogger comments, comment countblogger blogspot, blogger commentsblogger bubble comment countcomments in blogger titlesblogger tips, blogger tricksblogger widgets, bubble comment countbubble comment countBubble Comment CountBubble Comment Count, blogger blogspot
Enjoy (:

22 February 2013

How to Add a Google Sitemap to your Blogger Blog



A "Sitemap XML" is a directory of all web pages that exist on a blog or website. Search engines like Google and Bing, using those files from XML site map, to find pages that could not be traced during the regular search.It will help you to make your site visible to search engine by which you will get more chance to get traffic from search engines.


How to generate a complete XML sitemap for the Blog.


Amit Agarwal made this useful tool by which we can easily generate our blog "xml sitemap" now we will use this tool-

  • Go To This ---->  Generator
  • Now enter your blog link and click on "Generate Sitemap"button 
  • Now copy the generated code (for example see below image)


  • From the Blogger dashboard, go to Settings > Search settings and the option that says "custom robots.txt "enable custom content robots.txt file by selecting" Yes ", then paste the copied text in the field and save the changes.


  • We are done now search engine will automatically Search engines will automatically discover your XML sitemap files via the robots.txt file

   This section is valid for both .blogspot.com address and also custom domain like labnol.org

Add Auto Read More with Thumbnail on Blogger


read more function of blogger


       This nice trick will automatically create post summaries with thumbnails. You don't need to add any extra code in every blogger post that you make.

Step 1:


         1.Login to your Blogger account.

         2.Go to "Blogger Dashboard" > "Template" > "Edit HTML".

         3.Back up your template.

         4.Check the  "Expand Widget Templates".

         5.In the code window, search for (Ctrl + F) </head> tag.

         6.Add below code just before </head> tag

<script type="text/javascript">
var summaryConf = {
    showImage: true,
    imgFloat: 'left',
    imgWidth: 120,
    imgHeight: 90,
    defaultThumb: 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyE3dhEIrrOYqFQGowGSL4ZmuImwMlDtoSM7DPpyt5V4Jt5QC75JMXM5XSlb1eLGoTPAP8S8KaVzdJYxrcDJ3WHTknib7avBgwGtKE-bpYN8KXN00bO59YD1J91_IYaAq8dhK4gIWwSeA/s1600/no-thumb.jpg',
    words: 65,
    wordsNoImg: 80,
    skip: 0,
    showHome: true,
    showLabel: true
};
</script>
<script type="text/javascript" src="http://srvsriram.googlecode.com/files/summary.js"></script>




Step 2:

    1.After that, search for (Ctrl + F) this line code:

data:post.body

    2.Replace the line with this code:


<span expr:id='data:post.id'><data:post.body/></span>
<b:if cond='data:blog.pageType == "index"'>
    <script type='text/javascript'>summary("<data:post.id/>")</script>
<span style='float:right;padding-top:20px;'><a expr:href='data:post.url'>Read More</a></span>
<b:else/>
    <b:if cond='data:blog.pageType == "archive"'>
        <script type='text/javascript'>summary("<data:post.id/>")</script>
    </b:if>
</b:if>



   3. Save your template


That’s it, enjoy!

Before you leave:
Do you find this article useful? Share it via Retweet, Share or Stumble buttons below.
Any suggestion, question or comment? Please post it in the comments below.



How to Remove Powered by Blogger Footer

HOW TO REMOVE POWERED BY BLOGGER FOOTER FROM YOUR BLOGSPOT BLOG

        You want to remove Powered by Blogger footer from the bottom of every page of your blog. You can remove powered by blogger footer by following steps:-

Their are two ways of removing Powered by Blogger Footer from your blogspot.

 Method 1 - By removing "Powered by Blogger" widget code from your blogger HTML.

 Method 2 - By Editing "Powered by Blogger" widget code from your blogger HTML.
Removing "Powered by Blogger" widget code from your blogger HTML.
1.) Login in to your new blogger interface and click on the template and then edit HTML.

  
Remove Powered By Blogger




2.) And then click on the Expand Widget Template and find the below code in your template as i had shown in the above picture.

<b:widget id='Attribution1' locked='true' title='' type='Attribution'>
<b:includable id='main'>
    <b:if cond='data:feedbackSurveyLink'>
      <div class='mobile-survey-link' style='text-align: center;'>
        <data:feedbackSurveyLink/>
      </div>
    </b:if>

    <div class='widget-content' style='text-align: center;'>
      <b:if cond='data:attribution != &quot;&quot;'>
       <data:attribution/>
      </b:if>
    </div>

    <b:include name='quickedit'/>
  </b:includable>
</b:widget>

3.) After finding the above code only remove the selected code and save the template.

4.) Now a warning will come that"Your new template does not include following widgets : Attribution1"

5.) Click on delete widget and Save the template.

You have successfully remove the "Powered by Blogger" from your blogspot.


Method -2

Edit "Powered by Blogger" widget code

1.)  Follow the step one of the above method and find the following line only.

<b:widget id='Attribution1' locked='true' title='' type='Attribution'>

and change the above code with below code

<b:widget id='Attribution1' locked='false' title='' type='Attribution'>

and save the template and you are now ready to remove this widget.

2.) Now go to the Layout from the left pane and then click on edit at attribution widget and then click on remove to remove it.

remove powered by blogger
Remove Powered By Blogger

   After removing widget save the arrangement and you can check that you had successfully remove "Powered by Blogger" widget code from your blogger.
   If you like the post and find it helpful for other then please share this post to help others.

 

Copyright @ 2013 yourcodes.