Sunday 17 June 2012

How to override the blogger template copyright using jQuery

1. Add link to the latest jQuery JavaScript library to the of your template.
http://code.jquery.com/jquery-latest.min.js

2. Add a HTML/JavaScript Gadget to your template and populate with the following JavaScript.
 $(document).ready(function() {  
  var year = new Date();  
  var cr = "© " + year.getFullYear();
  cr = cr + "&nbsp;<a href='mailto:email@address.com'>Name</a>";   
  var attr = $("#Attribution1 .widget-content");  
  attr.html(cr);   
 });  
code formatted here