We know that blogger have its own predefine libraries and these libraries work only on blogger. In blogger we use .xml file format or we say we use xml language to make blogger template. In this post we discuss about how to place bootstrap CSS and Java script to blogger template.
First we discuss about how to place bootstrap in blogger.
1. First you have to open your template edit section.
2. Then find head opening (<Head>) tag.
3.Then copy these codes.
4. Paste these codes in your <head> section. like the example given below--->
First we discuss about how to place bootstrap in blogger.
1. First you have to open your template edit section.
2. Then find head opening (<Head>) tag.
3.Then copy these codes.
<meta content='width=device-width, initial-scale=1.0' name='viewport'/> <link href='//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css' rel='stylesheet'/> <link href='//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css' rel='stylesheet' type='text/css'/>
4. Paste these codes in your <head> section. like the example given below--->
<head> <meta charset='UTF-8' language='en'/> <b:include data='blog' name='all-head-content'/> <meta content='SEO,Social Media Marketing,Blogging,Make Money,Blogspot,Blogger' name='Keywords'/> <meta content='India' name='Country'/> <meta content='Ankur garg' name='Author'/> <meta content='width=device-width, initial-scale=1.0' name='viewport'/> <link href='//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css' rel='stylesheet'/> <link href='//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css' rel='stylesheet' type='text/css'/> <b:if cond='data:blog.pageType == "index"'> <title><data:blog.pageTitle/></title> <b:else/> <title><data:blog.pageName/> ~ <data:blog.title/></title> </b:if> </head>
5. These are the CSS file now copy these javascript link and paste these in footer or body.
<script src='http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js'/> <script src='//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js'/>
</div> <!-- rest your script --> <script src='http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js'/> <script src='//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js'/> </body><!-- this is the closing tag of body --> </html>
6. After copy these codes to your template save the template and click view blog button your template may be not changed. If not this is good for you and if change so don't think negative it just overwrite the old template .
Comments
Post a Comment