Thursday, April 30, 2015

How to Add Non Removable Credit Link in Blogger Template


MAKING YOUR JAVA SCRIPT:
1.This JavaScript will help you protect your credits by directly redirecting to your desired page when someone removes the credits.
2.The JavaScript is as follows and should be placed after <head> or before </head>
<script type='text/javascript'>
//<![CDATA[
$(document).ready(function () {
    if ($("#keepit,.keepit").attr("href") != "http://blogger-templatees.blogspot.com") {
        window.location.href = "http://blogger-templatees.blogspot.com";
    }
});
//]]>
</script>
Things to be Know

#keepit: This is the name of the div class which we will use in our div setup. So if anyone removes this div class they will be redirected to the link.
http://blogger-templatees.blogspot.com: This is the link where the page will be redirected if the credits are changed or removed.

Once you have edited the JavaScript given above you can use the below div structure in correspondence with the above script.
Again search for </body>
Now copy following code and paste right before </body>
<div id='#keepit'>
Designed By <a href='http://blogger-templatees.blogspot.com/' id='#keepit'>BloggerTemplates</a>
</div> 


Make sure all the text highlighted in blue are '#keepit' and text highlighted in red is http://blogger-templatees.blogspot.com/ or the same link that you want to redirect to.


Previous Post
Next Post