- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
Linking keywords from post to post is referred to as anchor linking.
This is one of the best SEO strategies for higher blog and post
ranking in search engines.
Linking keywords in posts is very easy in wordpress because of the
availability of plugins. For instance, i used 'SEO smart plugin' to
automatically link keywords in my blog www. letgoonline.website on
wordpress. Such is not possible in blogger. However, the following
steps will help to link only 'one' keyword together whenever it
appears on your blog to a particular/specified URL.
Let say you choose to link the keyword " blog" in the script
and the URL you want this
script to link to
is www.letgoonline.com/2016/02/how-to-make-money-online-from-clickbank.html?m=1
This means that after
adding the script in the template
code, all posts with the
keywords " blog" will be link to
that post.
11 STEPS TO AUTOMATICALLY LINK KEYWORD IN BLOGGER
1. Go to your Blogger Dashboard
2. Click on Template
3. Click Edit
HTML.
4. Press Ctrl + F
5. Search for </
body> tag.
6. Copy the code below and
paste above it.
<script src='//
ajax.googleapis.com/ajax/libs/
jquery/1.10.2/jquery.min.js'/>
<script type="text/
javascript">function autoLink(){
this.keywdHref = new Object();
this.add = function(keyword,
href){
if(keyword.substr(0,1) !=
""){keyword = "
" +keyword;}
this.keywdHref[keyword] = href;
}
this.createAnchor = function(){
var objs
=document.getElementsByTagName
("div");
for(var i=0; i<objs.length; i++){
var obj = objs[i];
if(obj.className.indexOf
("post-body")>-1){
var content = obj.innerHTML;
for(var keyword in
this.keywdHref){
var href = this.keywdHref
[keyword];
var newstr =content.replace
(keyword, "<a href=&#
39;"+href+"&#
39;>"+keyword
+"</
a>", "gi");
obj.innerHTML = newstr;
content = newstr;
}
}
}
}
this.startScript = function(){
var onLoad = window.onload;
window.onload = function(){
if(onLoad){onLoad();}
setTimeout
("f.createAnchor()",
100);
}
}
}
</script>
<script type="text/javascript">
var f = new autoLink();
f.add("KEYWORD
"," www.letgoonline.com/2016/02/how-to-make-money-online-from-clickbank.html?m=1/
");
f.startScript();
</script>
7. Replace only the 'KEYWORD' written in capital letter located
towards the end of the code with
with your Keyword e.g 'blog'.
8. Replace the URL
(www.letgoonline.com/2016/02/how-to-make-money-online-from-clickbank.html?m=1)
below the KEYWORD with
your own blog post URL (not
homepage) where you want the keyword anchor link to link to.
9. Save template
10. Congrat! All your
post that contains that Keyword will link to
the post you included it's URL in
the script.
11. It is important to know that you can only link one keyword with this script.
RANDOM POSTS
This is one of the best SEO strategies for higher blog and post
ranking in search engines.
Linking keywords in posts is very easy in wordpress because of the
availability of plugins. For instance, i used 'SEO smart plugin' to
automatically link keywords in my blog www. letgoonline.website on
wordpress. Such is not possible in blogger. However, the following
steps will help to link only 'one' keyword together whenever it
appears on your blog to a particular/specified URL.
Let say you choose to link the keyword " blog" in the script
and the URL you want this
script to link to
is www.letgoonline.com/2016/02/how-to-make-money-online-from-clickbank.html?m=1
This means that after
adding the script in the template
code, all posts with the
keywords " blog" will be link to
that post.
11 STEPS TO AUTOMATICALLY LINK KEYWORD IN BLOGGER
1. Go to your Blogger Dashboard
2. Click on Template
3. Click Edit
HTML.
4. Press Ctrl + F
5. Search for </
body> tag.
6. Copy the code below and
paste above it.
<script src='//
ajax.googleapis.com/ajax/libs/
jquery/1.10.2/jquery.min.js'/>
<script type="text/
javascript">function autoLink(){
this.keywdHref = new Object();
this.add = function(keyword,
href){
if(keyword.substr(0,1) !=
""){keyword = "
" +keyword;}
this.keywdHref[keyword] = href;
}
this.createAnchor = function(){
var objs
=document.getElementsByTagName
("div");
for(var i=0; i<objs.length; i++){
var obj = objs[i];
if(obj.className.indexOf
("post-body")>-1){
var content = obj.innerHTML;
for(var keyword in
this.keywdHref){
var href = this.keywdHref
[keyword];
var newstr =content.replace
(keyword, "<a href=&#
39;"+href+"&#
39;>"+keyword
+"</
a>", "gi");
obj.innerHTML = newstr;
content = newstr;
}
}
}
}
this.startScript = function(){
var onLoad = window.onload;
window.onload = function(){
if(onLoad){onLoad();}
setTimeout
("f.createAnchor()",
100);
}
}
}
</script>
<script type="text/javascript">
var f = new autoLink();
f.add("KEYWORD
"," www.letgoonline.com/2016/02/how-to-make-money-online-from-clickbank.html?m=1/
");
f.startScript();
</script>
7. Replace only the 'KEYWORD' written in capital letter located
towards the end of the code with
with your Keyword e.g 'blog'.
8. Replace the URL
(www.letgoonline.com/2016/02/how-to-make-money-online-from-clickbank.html?m=1)
below the KEYWORD with
your own blog post URL (not
homepage) where you want the keyword anchor link to link to.
9. Save template
10. Congrat! All your
post that contains that Keyword will link to
the post you included it's URL in
the script.
11. It is important to know that you can only link one keyword with this script.
RANDOM POSTS
Comments
Post a Comment