Top Ads

Header Ads

How to remove link within widget in blogger



I talked about LinkWithin a little bit before in a previous DIY post. It’s a great widget to add for Blogger. The problem that many people have with it, though, is that the homepage looks rather cluttered with all of those boxes for every post. It just looks more streamlined when you don’t have to scroll past a linkwithin section after every post. So today, we are going to go over how to remove those linkwithin boxes just from your home page and have it still display on the individual posts.


This tutorial will only cover how to do this in Blogger. If you want this for WordPress, I would suggest getting a different related posts widget (such as YARPP). I actually found an easy way to do this tutorial so that you don’t have to dive into your HTML and make changes. There are just a couple steps you need to make.

1. REMOVE YOUR LINKWITHIN GADGET

Wait…completely? Yep! The only way we can skip editing your template, is by starting over from the beginning. So, once you go to Blogger > Layout and remove your LinkWithin gadget, go to http://www.linkwithin.com/ and fill in that form like you did before.

2. RE-ADD LINKWITHIN

Once you have the form filled out, click the Get Widget button. Then at the top of the next page click the Install Widget link.

3. MODIFY LINKWITHIN TEMPLATE

LinkWithin has actually made this very easy for us by giving us a section where we can quickly modify the template widget before it goes in! Before you click the Add Widget button, click on the drop down for Edit Template. You should see this code:


<b:includable id="main"><data:content /></b:includable>

All we have to do is add in an if statement. Just delete the code that you have in that template box and replace it with this:


<b:includable id="main"><b:if cond='data:blog.pageType == &quot;item&quot;'><data:content /></b:if></b:includable>

And you’re done! Just give LinkWithin some time to reacquaint itself with your blog. Quick and easy right? =)