Easy Ways to Install Smart SEO Links on Blogs
Easy Ways to Install Smart SEO Link on Blog - This time Arlina Design will share theSEO Smart Link plugin which is a WordPress plugin that serves to change every word specified in an article into a link.
This plugin will read every word you specify in the article. For example, if you add the word SEO or Blogger to the plugin, then automatically every word will change to a link if there is a word in your blog article.
Open Blogger> Templates> Then add the code below before </body>
If you want the plugin above to only appear on the posting page, please add a special conditional tag on the post page.
References: Some Conditional Tag Functions in the Save Templates Widget
In the code above you can add other keywords below, for example How the SEO Smart Link Plugin Works
This plugin will read every word you specify in the article. For example, if you add the word SEO or Blogger to the plugin, then automatically every word will change to a link if there is a word in your blog article.
How to Install SEO Smart Links
Open Blogger> Templates> Then add the code below before </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://stressthinking.blogspot.com/");
f.startScript();
</script>
If you want the plugin above to only appear on the posting page, please add a special conditional tag on the post page.
References: Some Conditional Tag Functions in the Save Templates Widget
f.add("SEO", "http://stressthinking.blogspot.com/");
f.add("Template", "http://stressthinking.blogspot.com/");
f.add("Blogger", "http://stressthinking.blogspot.com/");
You can also add words to bold, for example
f.add("<b>SEO</b>", "stressthinking.blogspot.com/");
Note
It is recommended not to add excessive keywords, 1 to 3 keywords are enough.
Application example
Pay attention to the word Mobile and Friendly in the article on the demo page
So about the Easy Way to Install Smart SEO Links on a Blog , hopefully useful.