Add blank and nofollow target for links in blog. Thus the reader will not have to leave the current page to read the new page.
Add blank and nofollow target for links in blog |
target = "_ blank"
to the link in the article to when clicking the link that will open a new tab in the browser 1. Thus the reader will not have to leave the current page to read the new page. http://bestseowordpressthemes.blogspot.com blog unfortunately now no longer active, so today I present the procedure to add one little improvement allows inserting the attribute rel = "nofollow"
to links to external sites, with other domains blog's domain.The code inserted quite simple blog I use jQuery to do so. Open up your template, insert the following code immediately before the closing
</ body>
<Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </ script>You only need to modify the line to declare
<script type = "text / javascript ">
$ (function () {
var domain = 'http://bestseowordpressthemes.blogspot.com';
// Them target = "_ blank" for all links
$ ('a'). attr ('target', '_blank');
// Them rel = "nofollow" for links to another site (not at the domain)
$ ('a: not ([href ^ = "+ domain +']) '). attr (' rel '' nofollow ');
});
</ script>
the domain
in the above code is given.
Use the code above to insert javascript should nofollow can be inefficient (in controlling PageRank) if the bugs of the browsers can not read javascript.
0 Response to "Add blank and nofollow target for links in blog"
Post a Comment
Best SEO WordPress Themes, Best SEO Friendly WordPress Themes, Best SEO Optimized WordPress Themes