Skip to main content

Blogger: Method to Add 'Link to This Post' Widget on Your Posts

Blogger: Method to Add ‘Link to This Post’ Widget on Your Posts

[Today I’m going to provide you with a code that you can put on your Blogger Blogs. It’ll give your visitors a very easy way to link to your posts if they like it. Scroll to the bottom to see it in action! You might also want to read New Working Method of Making Blogger Title Tags SEO Friendly]


When it comes to Search Engine rankings, link popularity is no doubt one of the most important factors especially organic link popularity.

Nowadays Search Engines’ algorithms have become so intelligent and sophisticated that they could differentiate between different types of links; paid, reciprocal, organic etc. to name some, automatically and not let discouraged factors manipulate rankings much (in some cases by even penalizing those site).

Coming to Organic Link Building, there is no better way to do (or at least increase) Link Building than to ask or encourage your visitors. You see, I’ve it at the bottom of this post. This way you are asking peoples for links as well as providing them with the HTML code to ease the process a bit. Now if peoples like our post or site and HTML code is what they have to copy and paste, you stand a better chance of getting links than with many other techniques. One more BIG advantage is that as the code would generate anchor text (text of the hyperlink) same as the post title, again odds are that you’d get your main and relevant keywords in the links; rather than ‘this great post’ which some peoples prefer!

Below is the code that does this:

<!-- By Arvind Gupta -- http://learning-computer-programming.blogspot.com/ -->
<div align='center' style='border: 1px solid #646464; padding: 10px; margin: 20px;'> 
<p style='font-size: 150%; background: #C8C8C8; padding: 5px;'>Show Some Love!</p>
<p>If you like this post please consider 
  making a reference to it from other Blogs, Forums, Profiles etc. by copying 
  and pasting the following HTML code. Thank You!<br/>
  <br/>
<textarea cols='40' id='bloglinking' name='bloglinking' onFocus='select()' rows='3'>&lt;a href=&quot;<data:post.url/>&quot;&gt;<data:post.title/>&lt;/a&gt;</textarea><br />
    <!--My Link-->
    <font color="#999999" size="1"><em>Link To This Post </em>Widget by <a href="http://learning-computer-programming.blogspot.com/">Learning 
    Computer Programming</a></font></p>
    <!--/My Link-->
</div>

First, you may want to change text so as to be unique in asking people to link to you ;-).
WARNING: You must not delete my link though… Nah! Just kidding, YOU CAN DELETE IT if you wish to.

Now you are ready with code, open your Blog’s Dashboard move to Layout -> Edit HTML, tick Expand Widget Template check box. Now there are two places where you can place it, either at the top or at the bottom (like mine) of the post, I personally prefer it at the bottom.

To place it at the TOP, find some code that looks like below (in the middle of the code listing):

...
...
<div class='post-header-line-1'/>

<div class='post-body'>

[--PUT THE CODE HERE--]

<p><data:post.body/></p>
<div style='clear: both;'/> <!-- clear for photos floats --></div>
<div class='post-footer'>

<p class='post-footer-line post-footer-line-1'><span class='post-author'>
<b:if cond='data:top.showAuthor'>
<data:top.authorLabel/> <data:post.author/>
</b:if>
...
...

And place our code as and where stated.

To have it at the BOTTOM, paste the code in a slightly different place as::

...
...
<div class='post-header-line-1'/>

<div class='post-body'>
<p><data:post.body/></p>
<div style='clear: both;'/> <!-- clear for photos floats --></div>
<div class='post-footer'>

[--PUT THE CODE HERE--]

<p class='post-footer-line post-footer-line-1'><span class='post-author'>
<b:if cond='data:top.showAuthor'>
<data:top.authorLabel/> <data:post.author/>
</b:if>
...
...

Previous Posts:

Popular posts from this blog

The Best Way(s) to Comment out PHP/HTML Code

PHP supports various styles of comments. Please check the following example: <?php // Single line comment code (); # Single line Comment code2 (); /* Multi Line comment code(); The code inside doesn't run */ // /* This doesn NOT start a multi-line comment block /* Multi line comment block The following line still ends the multi-line comment block //*/ The " # " comment style, though, is rarely used. Do note, in the example, that anything (even a multi-block comment /* ) after a " // " or " # " is a comment, and /* */ around any single-line comment overrides it. This information will come in handy when we learn about some neat tricks next. Comment out PHP Code Blocks Check the following code <?php //* Toggle line if ( 1 ) {      // } else {   ...

How to Create an HTML Form Linked with MySQL Database in PHP

If you're looking for example code and detailed discussion on how to create an HTML form that stores data in a MySQL database using PHP then this post might be what you're looking for. I assume that you're familiar with basic HTML, CSS, PHP coding, and  MySQL. I am going to divide this small project into two parts: The HTML form itself that takes input from the user and the PHP script that saves it into the database A table that displays the user-added data that has been saved in the database. We'll be dealing with the first part in this tutorial. Again I'd like to break this problem into a few parts so that it's easier for you to understand and probably gives you an insight into how breaking up a problem into smaller chunks can help make things clearer in your mind. Let's think about it, there is an HTML form (that is HTML code), then there is the PHP code that deals with the user-input data, and the MySQL database itself. For this tutorial, we'll b...

Fix For Toshiba Satellite "RTC Battery is Low" Error (with Pictures)

RTC Battery is Low Error on a Toshiba Satellite laptop "RTC Battery is Low..." An error message flashing while you try to boot your laptop is enough to panic many people. But worry not! "RTC Battery" stands for Real-Time Clock battery which almost all laptops and PCs have on their motherboard to power the clock and sometimes to also keep the CMOS settings from getting erased while the system is switched off.  It is not uncommon for these batteries to last for years before requiring a replacement as the clock consumes very less power. And contrary to what some people tell you - they are not rechargeable or getting charged while your computer or laptop is running. In this article, we'll learn everything about RTC batteries and how to fix the error on your Toshiba Satellite laptop. What is an RTC Battery? RTC or CMOS batteries are small coin-shaped lithium batteries with a 3-volts output. Most laptops use ...