Part 1:- Prepare Your Coding File For Host
- First of your need to create file of that particular codes which you want to host. Just like any piece of CSS, JS, HTML or any other which want to host simple many file of their coding.
- Copy your coding which you having selected to host. Just like here i am doing with my css codes in same you can host other languages codes.
- Open notepad and Paste your copied codes and save it with .CSS extension just likesafetricks.css
- In same way if you want host JavaScript use .JS extension at the end and your file likeSafetricks.js
- Then save your codes after doing all these thinks in a right manner.
Part 2:- Upload Your File on Google Drive
- Open Google Drive and log in with your gmail account. After login from right side click on Create button then make a new separate folder for your hosted files.
- After Creating new folder and open it and then just on right of create button their is an option for uploading or even you drag your file to upload.
- Simply select your file which we have created in Part 1.
- After uploading click on the share button as shown in screenshot.
- After saving you will get link of your uploaded file simple copy that link and paste it into notepad for further usage.
Part 3:- Use Hosted file within Your template
- After completing all the process explained above accurately you will get a link of your hosted file which something link this one
https://drive.google.com/file/d/0B_1mqJd2tC8qUzRYU0xLT0ZNS1E/edit?usp=sharing
- The above link file is in the format for only sharing not in format for hosting a codes. So to use that file as a hosted file you need to use them as shown below
https://googledrive.com/host/Green-color-drive-code-here
- After making these changes you will get a file in the below format which is ready to use. If you having an knowledge about designing then it not an issue but if you don't know how to use your hosted file link within your design then simply select your format
http://googledrive.com/host/0B_1mqJd2tC8qUzRYU0xLT0ZNS1E
For CSS Stylesheets
<link href='google-drive-link-here' rel='stylesheet'/>
For JavaScript
<script src='google-drive-link-here' type='text/javascript'></script>
- Simply replace google-drive-link-here with your ones and paste it in your design before <head> tag for css and paste after <body> for JavaScript. For Blogger go to template section >> Edit HTML and then search for <head> or <body>
Some Benefits of Hosting File on Google Drive.
- As name explains everything, its a Google's product that means best quality service and trusted platform.
- Google Drive having a lot of space. For per account we get 5GB for storage which large in account in case if you all space get full then you can upgrade from free to premium for space.
- Loading Speed of hosted files is faster than other services just because of unlimited bandwidth provides by Google servers and with reliable speed.
- Flexible for usage and easy to understand even you can number of different types for files on your drive without any limitation.
- Last but not lease its totally free to use which is a best part.
Post a Comment