Home SEO Tools FAQs Guest post Contact Donate

Add “Link to this post” codes below blogger posts

| 14 comments

link to this post box One of the easiest ways to encourage readers to link back to your blog post is by providing “Link to this post” codes at the end of each post. If the post is useful or informative enough, readers would want to share it on their blogs, discussion forums etc. And since most people still use copy-paste method when sharing, providing the codes for the post’s permalink would certainly help.

Let’s learn how to do it. Once you’re done, the codes will automatically appear below each post on post pages. Checkout the demo at the end of this post.

  1. Go to Dashboard > Design > Edit HTML.
  2. Back up your template.
  3. Tick the  Expand Widget Templates check box on top right of the HTML window.
  4. Paste the following code right under <data:post.body/> :  
    <b:if cond='data:blog.pageType == &quot;item&quot;'>
    <p>Do you like this post? Please link back to this article by copying one of the codes below.</p>
    URL:
    <textarea id="url" onclick="this.focus();this.select()" readonly="readonly" rows="2" style="background:#eee; height: 2.6em; width: 100%;" title="Click to highlight"><data:post.url/></textarea>
    HTML link code:
    <textarea id="HTML-code" onclick="this.focus();this.select()" readonly="readonly" rows="2" style="background:#eee; height: 2.6em; width: 100%;" title="Click to highlight">&lt;a href=&quot;<data:post.url/>&quot;&gt;<data:post.title/>&lt;/a&gt;</textarea>
    BB (forum) link code:
    <textarea id="BB-code" onclick="this.focus();this.select()" readonly="readonly" rows="2" style="background:#eee; height: 2.6em; width: 100%;" title="Click to highlight">[url=<data:post.url/>]<data:post.title/>[/url]</textarea>
    </b:if>
  5. Preview and save.

Do you like this post? Please link back to this article by copying one of the codes below.

URL:
HTML link code:
BB (forum) link code:

Enjoy!

14 comments to "Add “Link to this post” codes below blogger posts"

Jitendra December 30, 2011 1:57 AM    

wow, it is really nice tricks to get more share links

MUXLIMO December 30, 2011 8:39 AM    

I love this post. Thanks so much, Brother.. :)

conference merchandise December 30, 2011 8:04 PM    

I think that are the easiest way to link back to your blog.You are also providing a demo with code.Great!

Mary December 30, 2011 8:49 PM    

Nice tip. I've made a couple of changes implementing this on my site:

- made the width 98% instead of 100. (Otherwise the right hand border was cut off, not quite sure why)
- put some space between the code blocks
- put the header into a bolder style

Anonymous,  December 31, 2011 4:22 AM    

hi, I'm using your tinted template design, but the code [data:post.body/> : ] isn't there, is there another place where the code can be added and also I want to change the footer color but I'm not sure how to, TIA. Your blog is fantastic thanks for sharing it.

Anonymous,  December 31, 2011 5:36 AM    

okay, your right as usual, I found my error, the codes work perfectly. thanks

accountancystudents January 3, 2012 12:30 AM    

Awesome trick...

corporate gifts January 3, 2012 1:15 PM    

thanks for this code snippets. At first I got an error because I messed up with some missing quotes and spaces. But after some tweaks it just works fine.

Digitalkameras February 7, 2012 12:06 AM    

Just applied in my blogspot.
It works.. Thanks..

Telugu GalaGala February 18, 2012 12:49 PM    

i would like to make the images share along with url... i have many greeting cards of mine and need to make online to share the TEXTAREA but how to make the imagelink automatically from the post to the code.

Greenlava February 19, 2012 1:09 PM    

@Telugu GalaGala
Image link has to be added manually, there's no getting around that :(

mypress-release.biz February 20, 2012 9:38 PM    

Thank you!
Very cool!
I used it on my site!

Ying Zhang February 22, 2012 11:54 AM    

Do you know how to add the plugins or code Like "Auto SEO Linker" (in Wordpress)? thank you?

Greenlava February 25, 2012 2:59 PM    

@Ying Zhang
There is no such plugin on Blogger. But if you use Windows Live Writer as your blog editor, it has some kind of auto-linking feature built-in.

We love to hear from you! Leave us a comment.

If your question is unrelated to this article, please use our Facebook page.
When posting HTML/XML code, replace < and > symbols with [ and ] respectively. The reverse applies when copying code from my replies here.

Pls share this page

Get this
Click to go to top Click to comment