Accrisoft Freedom Page Title Override - jQuery


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.