You Are Here: Home » Articles » Hacks » How-To » Tips & Tricks » Web » Web Design

How to force the DiggBar to NOT load on your website ?

By on April 9th, 2009 
Advertisement

The DiggBar enables you to Digg, read comments, find related content, and share stuff from any page on the Web. And

Digg website Photo - Courtesy: Gawker Media

Digg website Photo - Courtesy: Gawker Media

it's presented in a short URL format, making it easy to share in emails, on Twitter, and via other services. You can find the DiggBar on all outbound links from Digg.com. This means whenever a link from your website is featured on Digg you are no longer going to get any traffic juice to your blog from Digg.

This is because the page on your website is actually on Digg itself — they’re making a page with the DiggBar and pulling in your content without permission into a frame. And if you use the Digg short URLs and since all the links that appear on Digg now use the DiggBar short URL, none of the link credit passes to your page. It’s all kept with Digg. Since everything is loaded as ditto your webpage you donot loose out on advertising revenue.

diggbar-force-stop

Now if you are a content publisher you would surely not want the link credit of your link to stay with Digg. So we will now share a trick with you with the help of which you can force a link appearing on Digg not to open with DiggBar when that link is clicked. Here is the tip:

All you need to do is include the following JavaScript code at the beginning of each and every page of your website inside the <head> tags-

<script type="text/javascript">
<!--
if (top.location!= self.location) {
top.location = self.location.href
}
//-->
</script>

A screenshot of the source code of the website Searchengineland will make things a bit more clear so as to where the exact placement of the code should be.

code-scren

Technorati Tags: force,stop,diggbar,load,website

Advertisement



Related Posts by Tags: , , , , , ,





How to force the DiggBar to NOT load on your website ? was originally published on Digitizor.com on April 9, 2009 - 2:45 pm (Indian Standard Time)