Reputation: 10525
I'm going to learn bootstrap for responsive site design and downloaded it and set the followings in joomla 2.5:
<head>
section of index.php:<meta charset="utf-8">
<jdoc:include type="head" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="/<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/assets/css/bootstrap.css" type="text/css" media="screen" />
To test it's css I defined background-color: red !important;
to container-fluid in bootstrap.css and added a class container-fluid
in main div in index.php but I think the css is not working. I mean bootstrap css is not loading.
Question: How to implement bootstrap css for responsive site in joomla 2.5?
Upvotes: 1
Views: 268
Reputation: 11845
All you need is here: Joomla Communite Magazine, Issue 2012 August.
You have three options for creating a new template
If you are interested in Out-of-box solution.
PS: to load css files, something like this should work:
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/assets/css/bootstrap.css" type="text/css" media="screen" />
$this->baseurl
contains the location within your domain that Joomla is installed at.
Upvotes: 1