Skip to main content

How To Move Blogger Inline Styles CSS to External CSS file with Google Drive Within 5 mins

Inline style are the major barrier between good SEO score and your blog.Inline styles make the code too big, so how long you write the code to text ration won't rise up.In blogger, inline styles are used by default.But most of the websites on internet use external style sheets as they are self hosted and the designers are very likely to use external CSS.Sometimes Blogger use internal styles.You can learn the difference between Internal CSS,Inline CSS and External CSS from W3 schools.Read this article on Inline VS External CSS.


Probably you may have tried copying CSS between <b:skin> tags of your Blogger blog.If you tried that you already know that it doesn't work.Because Blogger has more CSS coding that won't show in Template>Edit.So to find the real exact CSS code of your blog follow these steps.For this tutorial you need a Google Drive account,if you have a Blogger account you may already have one.If you don't have a Google Drive account create one now! Its easy and gives you free 15GB of space.

#1.Go to your blog.
How To Move Blogger Inline Styles CSS to External CSS file with Google Drive Within 5 mins

#2.Right click on a free space [Not on a Link] and click view page source.The source code of your blog will show up.
View Page Source

View Page Source

#3.Now search for "style" You may find few CSS coding between <style> tags.And before the first <style> tag you'll find two CSS file links.Copy them all.These are the real CSS codes of your blog.You should copy the whole text including <style></style>tags.Normally you will get 2 <style/> tags.If you applied more internal CSS you will get more.

Copy the CSS code

#4.Paste all the CSS codes to single a notepad file and save with .css extension.
    You can use any file name.
Make a CSS file

#5.Now go to your Google Drive and create a new folder.You can use any name but make sure you have your folders nicely organized.

Create a new folder in google drive

#6.Upload your CSS file to the folder that you just created.

Upload your CSS file to google drive

#7.Now right click on the file Share>Advanced>Change and select Public on the web.

Share your CSS file on google drive


Share your CSS file on google drive


Share your CSS file on google drive

Share your CSS file on google drive

#8.Now tight click again on the file and click Get Link.Copy the link.

Share your CSS file on google drive

Share your CSS file on google drive

#9.Now create a new tab in your browser and paste the link in the address bar and press enter.Your CSS file will be displayed as a text file.
#10.Now check the address bar of your browser.The link has been redirected.Copy the code between /file/d/ and /edit.Now type googledrive.com/host/yourcopiedfilecode and press enter.

Now you may need to create an API KEY to generate direct download link. Follow this link for generating direct link.
https://www.wonderplugin.com/online-tools/google-drive-direct-link-generator/

copy the file code

copy the file code

#11.Now you'll be automatically redirected to a URL,but the CSS file will be displayed as plain text.Now this link is your direct link to the CSS file.Copy it.

Go to the URL

#12.Go your Blogger account.Open Template>Edit HTML.

Template > Edit HTML

#13.Find <b:skin> tag and delete everything between <b:skin> and </b:skin> tags.Make sure you make a Backup of your template.

Delete text between <b:skin> and <b:template-skin> tags


Now scroll down a little bit and you'll find <b:template-skin></b:template-skin> tags.Delete everything between that tags also.

Delete text between <b:skin> and <b:template-skin> tags

Delete text between <b:skin> and <b:template-skin> tags

#14.Find your <head> tag.Insert this code after it.Replace yourdirectlink with your direct link to the CSS file.
<link href='yourdirectlink' rel='stylesheet' type='text/css'/>

Paste this new link

#15.Preview template to make sure its working.Save the Template.

Now you'll see that your blog's fonts have been screwed.Don't worry you didn't do anything wrong.You just have to load web fonts to your blog.

How To Add Google Webfonts To Your Blog Or Website For Free

Comments

  1. Here's how to host it on Dropbox
    How to Externalize Your Blogger Stylesheet
    http://www.bluebugle.org/2012/09/blogger-external-css-stylesheet.html

    ReplyDelete
  2. I tried your way, my website goes very wrong. then I went back to my backup not fixed!!! and when I tried to enter my site google says its blocked???!!!
    I found your way is inject the css automatically in additional css in my template even after I installed the backup!!!
    they I fix this was going to delete this additional css and restored my template to normal from blogger it self. then i installed my back up again and everything's okay.
    do you know what coase this problem?

    ReplyDelete
    Replies
    1. is your site hosted in blogger?? if you can give me admin I can check what is wrong or just give me more details

      Delete
  3. We seldom use external stylesheets at our blogs to minimize more external calls, by default blogger already imports a large chunk ;(.

    A good alternative if a user wants to compile custom css rules into 1 file, but the downside the file headers & cache control could not be set according to current best practices...

    ReplyDelete

Post a Comment

Like our post?
Want to know more?
Please ASK!

Popular posts from this blog

USE HARDWARE ACCELERATION FOR VIDEO PLAYBACK | 4K HEVC 10bit | GPU DECODING GOOD or BAD ?

So as it seems that 4K is getting popular these days, but some people who have older computers may have some trouble playing 4K videos. Especially 10bit HEVC (x265) format. But the support for hardware decoding of HEVC 10 bit videos has been added few years ago. First of all lets see whether this hardware decoding is better than normal software(CPU) decoding compared with power. We won't be playing a game while watching a movie of course, at least not with a single monitor setup. So we can stop worrying about GPU usage going for 100% while watching a movie. But you could be doing many tasks with CPU while watching a movie. It is very practical. So lets turn into power consumption. This is very important for laptops. The following details are from a laptop with Intel Core i5 8250u with Intel HD graphics 620. File details. I used VLC media player latest version. All the Nvidia and Intel drivers used here are uptodate. Make sure you have the latest software and driv

DC Motor,Computer Cooling Fan Speed Controller Circuit DIY using Single Transistor And a Potentiometer

The circuit above can control speed of your DC motors or Computer Fans.If you use this to control speed of DC motors please use a diode to protect the Transistor,brush-less fans -OK.You can change the variable speed range by changing the value of R1 potentiometer.But don't use very high values,its pointless. The transistor used here is a NPN 2n3055,it can handle up to 15A and 115W of power.And this transistor can handle up to 60V.So if you're using this for PC fans you can add more in parallel.Normally a computer fan uses about 0.4W of power.Some powerful ones may use about 7W of power.If you don't use so much power then you can use a low power transistor like C1061,D313 etc. If you don't want to change the speed too often or hard to find a potentiometer or just willing to make this out of scrap you can use a Trim resistor for R1. The transistor may heat up very much and its essential to use a Heat sink.If you can,do not solder the transistor to the PCB s