Move your Page title with a little Javascript

Share the love!

Hello Friends Today i am going to share a trick which will allow you to move your Page Title, As you know last time i posted about How to remove sidebar from Home page in Blogger Sometimes we have a long title and want to show it so it will help for those also who want to show there full title, So lets have a look.

Actually i had Divided this script into two parts as one for Web page users and second for Blogger Users to make it more easy. Hope it works For You all. IF not Please leave a comment.

Steps for Web Page Users.

  1. Include this script between your <head> tags
  2. After including To add your page title Replace "Page title" From The below code With your Page title.
//Replace Page title with Your page title
var title=" Page title "; 
//Replace 200 to adjust the speed
var speed=200;
var mpse=null;
function rotulo_title() {
document.title=title;
title=title.substring(1,title.length)+title.charAt(0);
mpse=setTimeout("rotulo_title()",speed);}
rotulo_title();

Steps For Blogger Users.

  1. Go to Blogger Dashboard
  2. Backup Your Template
  3. Now Click Edit HTML
  4. Now Press Ctrl + F and find </head> and paste the below code above it.
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<script>
var title=" <data:blog.pageTitle/> "; 
//Replace 200 to adjust the speed
var speed=200;
var mpse=null;
function rotulo_title() {
document.title=title;
title=title.substring(1,title.length)+title.charAt(0);
mpse=setTimeout("rotulo_title()",speed);}
rotulo_title();
</script>
<b:else/>
<script>
var title=" <data:blog.pageName/> "; 
//Replace 200 to adjust the speed
var speed=200;
var mpse=null;
function rotulo_title() {
document.title=title;
title=title.substring(1,title.length)+title.charAt(0);
mpse=setTimeout("rotulo_title()",speed);}
rotulo_title();
</script>
</b:if>

Comment with-

Disqus Blogger Google Facebook

0 comments:

Post a Comment

Comments :