Hello, we all know that we can’t make our blogger’s CSS and javascript codes in a separate file.Usually blogger stores javascript and CSS of your blog embedded within single HTML file using HTML tag “script” as shown below
Table of Contents
Creating the file
Now the first step to do is Go to Blogger, sign in into your account > click on template > edit HTML
Tip: Backup your current template before editing.
Next, find the below tag using ctrl+f
<b:skin><b:skin>
Then remove the copied code from your template.
Now open Notepad > New file and paste all the code which you copied before and save the file with .CSS extension
Eg: demo.css
Uploading your file to Google Drive
- First, Go to Google drive and sign in into your account
- When you successfully signed in, click on Create > Folder > New > Name your folder with your blog name.
- Now upload your .css extension file into that folder>>make the file as public and click on save.
- Next, go to your uploaded file and click on share button which is present at the bottom right corner.
- You will then enter into share panel, copy the link just below ‘link to share‘.
- The link will look like
https://docs.google.com/file/d/file_code/edit?usp=sharing
- In the above link, ‘file_code’ is a unique code for your file and it cannot be changed by anyway.
- Now, change the above URL to link which is shown below
http://google.drive.com/host/file_code
Eg:https://google.drive.com/host/6846431873
Placing the link into your template
To insert the file link into your template, you must make use <link> tag, which will be
Next, copy this above tag
Paste it between
<b:skin>![CDATA[Your code goes here]CDATA]!</b:skin>
Now save the template, you are successfully done.
good.. Wanna try this.. <br />Thanks harish..
Try it for sure,it helps in reducing your blog loading time.Keep visting. 🙂
Can I do this on my blog..??<br />www.techno-nerdz.blogspot.com
Yes aditya,you can try it.It works on all blogger blogs.
Hi there!<br /><br />Nice trick. But may I know what's its benefit?<br /><br />Thanks!
This trick will help you to reduce the blog loading time.Thanks for commenting :).
Tried a lot But couldn't get it to work…
It will work for sure.I tried it before posting.Use <link href="URL" rel="stylesheet"> between <b:skin>![CDATA[ & ]CDATA]!</b:skin>