Welcome Enjoy Tutorials

Liked us?

Thursday, May 30, 2013

How to host the template scripts On Blogger


This is an interesting topic because any blogger who wants to place a scripts can not do directly in Blogger but it's up to use external services such as Google Sites or Dropbox, but there is a Trick to accommodate the scripts directly in the template.

To add the script in the template there are two ways:

The first is to add it directly in the template for that go to Layout> Edit HTML and before paste the following:

     <script type='text/javascript'>
     / / <! [CDATA [
     contents of the script ... ...
     / /]]>
     </ script>

To know what the contents of the script paste the URL of the script in the address bar of your browser, enter and you give will get a page full of codes and these codes are what you paste into the template where it says script contents.
But you can also download the file, then save it and open it with notepad and content displayed paste it into your template.

You can also host scripts as you this gadget for Design-> Page Elements-> Add a Gadget-> HTML / Javascript and paste the following:

     <script type='text/javascript'>
     contents of the script ... ...
     </ script>

To paste the contents of the script follow the above steps already explained.

With this we hosted the scripts hosted on our staff and our blog load a bit faster, but keep in mind that this will serve only for some cases because there will be some scripts that if you will have to stay in outside services.
Enhanced by Zemanta

No comments :

Post a Comment

Botones Isometricos de Social Media




Barra Lateral Fija