Posted By

conspirator on 12/19/08


Tagged

textmate page jquery title accrisoft freedom notseofriendly


Versions (?)

Accrisoft Freedom Page Title Override - jQuery


 / Published in: Other
 

  1. $(document).ready(function() {
  2. // FOR ACCRISOFT FREEDOM
  3. // OVERRIDES PAGE TITLE USING JQUERY
  4. // OBVIOUSLY NOT AS SEO FRIENDLY, BUT IS NICE TO KNOW THAT IT'S THERE IF WE NEED IT
  5. // REQUIRES THE USE OF A TAG [[tag.page_title_override]]
  6.  
  7. var site_title = "[[Title]]";
  8. var page_title = "[[Page_Title]]";
  9. var title_override = "[[tag.page_title_override]]";
  10. if (title_override == '') {document.title = site_title + " | " + page_title;} else {document.title = site_title + " | " + title_override;}
  11. });

Report this snippet  

You need to login to post a comment.