Give me 31 Days and I’ll Give You a Better Blog… Guaranteed

Check out 31 Days to Build a Better Blog

Give me 31 Days and I’ll Give You a Better Blog

Check it out

A Practical Podcast… to Help You Build a Better Blog

The ProBlogger Podcast

A Practical Podcast…

FREE Problogging tips delivered to your inbox  

Four easy steps to add your own link in Typepad

Posted By Darren Rowse 6th of January 2006 Blog Design, Blog Promotion 0 Comments

This post was submitted by Vic Correro from

I have to give credit where credit is due. I first saw Darren’s use of the ‘Add this post to link a while back and decided that I would like to do the same to I think this is an excellent idea, as is a wonderful resource. Also, Nick Wilson over at gave the additional push I needed to include this feature through his post and free PDF about

For those of you who are familiar with Typepad, or are using it, the following information will require a tad bit of knowledge with Typepad’s advanced template structure. If you want more information on this, see: Advanced Template Sets and Template Tags. Understanding of HTML will also be helpful here.

Now, before I continue. I do want to mention that this is the way that I accomplished the task. As the saying goes: ‘There’s more than one way to skin a cat’.

So, let’s get back to the topic. If you want to create your own link embedded somewhere in your post, you will need to do the following:

Step 1

Create your own template module (call it what you want, but remember the name) that contains the following content:

<script language="JavaScript">
document.write("<a href='"+document.location.href+"&title="+document.title+"' target='_new'>Like this post? Add it to!</a>");


In this case, I called the above template module ‘delicious-footer’. Notice the section of the above JavaScript code that reads: ‘Like this post? Add it to!’ Replace this line of text with whatever you want to read as the link.

If you don’t want this link to pop up in a new window, take out the section that reads: target=’new’

Save the file when you are done

Step 2

If you want a separate CSS setting for your link, you’ll need to define that in your Styles.css file. For instance, here are my settings for that particular link:

       margin: 0;
       padding: 5px 15px 5px 15px;
       background: #E7E3C6;
       font-size: 10px;
       color: #000000;
       text-align: center;

To get more information on CSS, and its uses, check out this CSS tutorial.

Save the file when you are done.

Step 3

The next step in the process is to reference your module from Step 1 through the ‘entry-individual‘ template module. The entry-individual template module is where the formatting of your individual posts is stored. This is where your knowledge of HTML will come in handy.

This will probably be the toughest part for those unfamiliar with this structure and HTML. You will need to figure out where, position wise, you will want the link to appear. If you notice my site, the link appears near the footer of the post (right above the comments and Adsense ad). This part is completely up to you. However, when you decide where you want to have your link, you’ll need to include the following code in that section:

<p class="my-delicious-background">
<$MTInclude module="delicious-footer"$>

I used the paragraph (<p>) tag here, but that could very well be some other tag of your choosing. Notice that steps 1 and 2 are included in this code (‘my-delicious-background’ as the CSS style and ‘delicious-footer’ as the template module).

Save the file when you are done.

Step 4

Publish your blog. You will need to ‘Publish All Files’ as any major changes (such as to template modules) will need to involve republishing of the entire site.

That’s it! You should now have a link added to your individual posts. Now, as far as having people use it, well, that is up to you and your marketing capabilities. That’s the part that I haven’t quite figured out yet. :)

About Darren Rowse
Darren Rowse is the founder and editor of ProBlogger Blog Tips and Digital Photography School. Learn more about him here and connect with him on Twitter, Facebook, Google+ and LinkedIn.
  • Correction: anywhere that you see a backslash “\” and quotation mark together (in the sample code), replace those two with a single quotation mark. Sorry for the confusion.

  • Good idea and good point on “there is more than one way to skin a cat”.

    One suggestion – due to almost all FireFox users using NoScript, you wouldn’t want this to break. Therefore, you’re really better off making the change in the PHP code and creating dynamic HTML so that you ensure it working 100% for all users. I would tend to stay away from JavaScript unless you have a Web 2.0 based site in which case almost everyone using your site would be running JS code.

    No matter how you do it, it’s a worthwhile implementation. Great article.

  • Seems to be a delicious theme going round at the moment – all great info.

    What positive effects have people seen from using such a link at the end of each article? I’ve thought about using it but felt that it was yet another opportunity to clog up the site and potentially lose a visitor.

  • Does this work for Movable Type as well? I’ve been looking for how to do this since I noticed you added it here – thanks!

  • Brian, I am almost sure that you can do the same through Movable Type. When all is said and done, the link is just that, a link. The big part is the fact that it always accompanies every individual post (so that you don’t have to manually add one). If Movable Type works with templates (like Typepad does) then you can do it.

    Unfortunately, I’ve never worked with Movable Type, so I cannot help you with step-by-step instructions on that. Sorry!

    Hagrin, you are right. Typepad, however, doesn’t allow much in the lines of programming flexibility (other than basic client-side scripting). I thought about this some more this morning. The only way that I can think of doing something like this is to host the code on some other server (and call it, somehow, from the Typepad blog). This is something I’d love to be able to do, just because it would improve the overall flexibility of the Typepad blogs.

  • Does anyone have a solution yet for Blogger? None of the ones I’ve seen out and about on the net seem to work.

  • Pingback: links for 2006-01-07 at()

  • Joe

    Hey guys,
    I just visited the site and they still seem to be having a lot of problems with their provider. Power outages and that type thing are not a good thing.
    I think I’ll wait until they move completely.

  • Billy

    I’ve not commented on this yet because I was hoping you were going to have an implementation for WordPress…

    BTW: this blog is on my A+ list, everything is just great, thx ProBlogger.

  • Billy
  • Hello guys!
    []Here you can buy and know all about drape![/URl]
    Thank you!

  • well, i managed to avoid your list of blogs to bash. :) (for now at least) knowing how much crap is actually out there, it shouldn’t be too hard to fill the void and provide some real content that people can use to become better affiliates.

  • Great tips man, gives me even more motivation to get going on it. I have a couple of the problems you’ve mentioned: not having enough time. Between work, school, and g/f, I barely have time to do campaigns. I also have no startup money.