How to Easily Put SEO Smart Links On Postings Blog- mas Dion Blog Hello friends, this time I want gives a tutorial how to plug SEO smart link in the post / article of your blog. Well usefulness of SEO Smart link mounting technique is intended to provide a signal to Google that more crawl links in our blog article and to advance SEO techniques to increase Page Views Blog itself.
How it works from the SEO Smart Links is very easy that is by displaying one or more characters that leads to a specific link where the link is a link you another article that you think is related to an article on your blog. If you are curious to know how the installation of SEO Smart Links in Blog you please see the discussion below.
For how very easy installation, consider the following tutorial:
- The first step please go first to the Edit HTML template >>
- Then how the code </ body>
- Then place the following code before the code </ body>
<script type='text/javascript'>
function smartLink(){
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='"+href+"'>"+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 smartLink();
f.add("SEO", "http://entertainment-plateform.blogspot.com/");
f.startScript();
</script>
If you want the plugin above only appear on a page posting only, want the plugin above only appear on a page posting any, please add the conditional tags page special post.
On the javascript code, just replace your word like "SEO" with your own keywords pal specify and change http://entertainment-plateform.blogspot.com/ with the url of your own blog (highlighted).
You can add more words just simply adding these javascript lines in your code where the already code marked, like this:
f.add("SEO", "http://entertainment-plateform.blogspot.com/");
f.add("Template", "http://entertainment-plateform.blogspot.com/");
f.add("Blogger", "http://entertainment-plateform.blogspot.com/
");
If you want to add your word in bold, so simply add these code with your words.
f.add("<b>SEO</b>", "http://entertainment-plateform.blogspot.com/
");
It is advisable not to add excessive keyword, from 1 to 3 keywords is enough.
Comments
Post a Comment