Easy Way To Add SEO Smart Link on Blog


SEO Smart Link was a Wordpress plugin to change any Keyword on your article to a link. It good to increase blog page impression and also increase adsense earning. SEO Smart Link will automatically change all your keywords to any link has been created without manually do in blog post.

Plugin will read blog post and generate it automatically example you put SEO or Technology on plugin, after article has been post to public and keywords for SEO and Technology will be automatic generate into a link.

How To Add SEO Smart Link to Blog


*Please save your template before add this plugin

Sign in to blogger > Template > Add below code before </body>

<script type='text/javascript'>
function smartLink(){
    this.keywdHref = new Object();
    this.add = function(keyword, href){
        if(keyword.substr(0,1) != &quot; &quot;){keyword = &quot; &quot; + keyword;}
        this.keywdHref[keyword] =  href;
    }
    this.createAnchor = function(){
        var objs = document.getElementsByTagName(&quot;div&quot;);
        for(var i=0; i&lt;objs.length; i++){
            var obj = objs[i];
            if(obj.className.indexOf(&quot;post-body&quot;)&gt;-1){
                var content = obj.innerHTML;
                for(var keyword in this.keywdHref){
                    var href = this.keywdHref[keyword];
                    var newstr = content.replace(keyword, &quot;&lt;a href=&#39;&quot;+href+&quot;&#39;&gt;&quot;+keyword+&quot;&lt;/a&gt;&quot;, &quot;gi&quot;);
                    obj.innerHTML = newstr;
                    content = newstr;
                }
            }
        }
    }
    this.startScript = function(){
        var onLoad = window.onload;
        window.onload = function(){
            if(onLoad){onLoad();}
            setTimeout(&quot;f.createAnchor()&quot;, 100);
        }
    }
}
</script>
<script type='text/javascript'>
var f = new smartLink();
f.add(&quot;SEO&quot;, &quot;http://www.trendslinkblog.com/&quot;);
f.startScript();
</script>


Click save to save all change has been made.


This Keywords can be add more than one code. Add more code example below:

f.add(&quot;SEO&quot;, &quot;http://www.trendslinkblog.com/&quot;);
f.add(&quot;Apple&quot;, &quot;http://www.trendslinkblog.com/&quot;);
f.add(&quot;Blogger&quot;, &quot;http://www.trendslinkblog.com/&quot;);

Enjoy!



Like our Facebook page and Subscribe Newsletter to get latest news

No comments

Trendslink © 2013-2016. Powered by Blogger.