Archive Pages Design$type=blogging

How To Easily Install Blog Smart Links

How To Easily Install Blog SEO Smart Links - This time I will share a plugin SEO Smart Links , which is a WordPress plugin that works to ch...

How To Easily Install Blog SEO Smart Links - This time I will share a plugin SEO Smart Links , which is a WordPress plugin that works to change every word that is specified in an article into a link .

How To Easily Install Blog Smart Links
How To Easily Install Blog Smart Links

How it Works

This plugin will read every word that has been determined in the article . For example, if you add the word Template or Theme on the plugin , then every word will be automatically turned into a link .

How to Install

Go to Blogger > Templates > Then add the following code before the < / 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;Template&quot;, &quot;http://www.YOUR-DOMAIN-NAME.com/&quot;);
f.startScript();
</script>

If you want the plugin above only appear on post pages only, please add a special conditional tag page post

Reference : Some Functions Tag Conditional At Widget Here

Save the template

On the marked code , replace 'Template' the keywords specified and replace http://www.YOUR-DOMAIN-NAME.com/  with the url of your blog .

In the above code you can add more keywords below, as an example

f.add(&quot;Theme&quot;, &quot;http://www.YOUR-DOMAIN-NAME.com/&quot;);
f.add(&quot;Template&quot;, &quot;http://www.YOUR-DOMAIN-NAME.com/&quot;);
f.add(&quot;Tutroials&quot;, &quot;http://www.YOUR-DOMAIN-NAME.com/&quot;);

You can also add words into bold , for example

f.add(&quot;&lt;b&gt;Template&lt;/b&gt;&quot;, &quot;http://www.YOUR-DOMAIN-NAME.com/&quot;);

Suggestion,

Plaese not to add excessive keyword , 2 or 4 keywords just enough.

COMMENTS

Name

Blogger Features Music Personal Responsive SEO Tutorials Youtube
false
ltr
item
BlogCando: How To Easily Install Blog Smart Links
How To Easily Install Blog Smart Links
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6P0qaex8wlI9xr81ow5ooUxYA9nDsYdfnKNRtEiN4InFsdAS4iIOJmmY0WFkFGgmPfW4waYPkDaY1pH7heWbDGolWvcHUMIRLcZ8plsC2f6Bj-kiF-Y-7NnEEN2aV8JtD1ahCofv6RxFG/s640/seo.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6P0qaex8wlI9xr81ow5ooUxYA9nDsYdfnKNRtEiN4InFsdAS4iIOJmmY0WFkFGgmPfW4waYPkDaY1pH7heWbDGolWvcHUMIRLcZ8plsC2f6Bj-kiF-Y-7NnEEN2aV8JtD1ahCofv6RxFG/s72-c/seo.png
BlogCando
http://willowandwattle.blogspot.com/2015/10/how-to-easily-install-blog-smart-links.html
http://willowandwattle.blogspot.com/
http://willowandwattle.blogspot.com/
http://willowandwattle.blogspot.com/2015/10/how-to-easily-install-blog-smart-links.html
true
8884252188204262734
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago