Follow Me:

Monday, September 1, 2014

How to Directly Add Javascript Code in Blogger Template

Add Javascript Code in Blogger Template

I was just adding a javascript code in my Blogger template and was getting errors while adding it. So i want to share a small quote when adding Javascript to your template. This code helps from prevent the XML errors in blog while saving your template. This is a tag inside it you need to place the JS wrap code and will not show you any errors.

This tag should be place before the </head> tag or you can add it before the </body> tag in your blogger template.

<script type='text/javascript'>
//<![CDATA[
// ADD Copy or Past your javascript code here..
//]]>
</script>

After adding it with the code Save your template.

1 comment:

  1. Simple and easy trick to add javascript thank you

    ReplyDelete

Creative Commons License