HackToHell. Powered by Blogger.

How to run javascripts in post pages only and not in HomePage

Blogger by Google has turned out to be the world's most used blogging platform , though it has less features, it is very helpful.Running a javascript in a post page and not in your homepage can increase your page load times and Google Site Rank

How to do so?

Login to your blogger account.

Go to Design  > Edit Html

There hit the expand templates button.

There search for the following term
<b:includable id='comment-form' var='post'>

Insert your JavaScript immediately after that line and that JavaScript will run on your post page alone!
I use that to run LinkWithin(Related posts ) and Kontera.
Share on Google Plus

About hacktohell

Love technology.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment