Thứ Ba, 31 tháng 12, 2013

Right way to embedded direct javascript code to Blogger template


I just usually forgot how to embedded javascript code to my Blogger templates. So I just want to share with you as a short quote and also help me each time I need add Js to a template. This tip always helps me prevent XML error when save template code.
At first, Access your blog dashboard, choose Template. Then click Edit HTML. Not, insert before </head> tag or </body> tag with your javascript wrapper code like below:
<script type='text/javascript'>
//<![CDATA[
// Place your javascript code here
//]]>
</script>
Then click Save template

Không có nhận xét nào:

Đăng nhận xét