I started creating sub theme by using following thread,
http://drupal.org/node/225125

But my css and regions are not getting inherited into subtheme
And I doubt whichever files are there in "bootstrap" directory those also not getting inherited by sub theme.

has any one created sub theme of twitter bootstrap..?

Comments

fStew’s picture

I was able to create a sub theme using the following .info file. Create this plus the tweaks.css file and you should be good to go.

name = subtheme
description = Twitter bootstrap subtheme
version = 0.1
core = 7.x
base theme = twitter_bootstrap

regions[header]         = 'Top Bar'
regions[highlighted]    = 'Highlighted'
regions[help]           = 'Help'
regions[content]        = 'Content'
regions[sidebar_first]  = 'Primary'
regions[sidebar_second] = 'Secondary'
regions[footer]         = 'Footer'

stylesheets[all][] = tweaks.css

settings[toggle_name] = 0
settings[toggle_search] = 1
andregriffin’s picture

Project: Twitter's Bootstrap » Bootstrap Framework
andregriffin’s picture

Project: Bootstrap Framework » Twitter's Bootstrap
natted’s picture

Project: Twitter's Bootstrap » Bootstrap
dgastudio’s picture

i have created a new subtheme (folder, with themename.info file)

in themename.info

name = subtheme
description = Twitter bootstrap subtheme
version = 0.1
core = 7.x
base theme = twitter_bootstrap

regions[header]         = 'Top Bar'
regions[highlighted]    = 'Highlighted'
regions[help]           = 'Help'
regions[content]        = 'Content'
regions[sidebar_first]  = 'Primary'
regions[sidebar_second] = 'Secondary'
regions[footer]         = 'Footer'

stylesheets[all][] = tweaks.css

settings[toggle_name] = 0
settings[toggle_search] = 1

after activate it:

Notice: Undefined variable: overlay in include() (line 3 of /home/u5444/domains/realestate.u7394.shiva.vps-private.net/sites/all/themes/rubik/page.tpl.php).
Notice: Undefined variable: primary_local_tasks in include() (line 10 of /home/u5444/domains/realestate.u7394.shiva.vps-private.net/sites/all/themes/rubik/page.tpl.php).
Notice: Undefined variable: page_icon_class in include() (line 15 of /home/u5444/domains/realestate.u7394.shiva.vps-private.net/sites/all/themes/rubik/page.tpl.php).
Notice: Undefined variable: title in include() (line 4 of /home/u5444/domains/realestate.u7394.shiva.vps-private.net/sites/all/themes/bootstrap/templates/block.tpl.php).
Notice: Trying to get property of non-object in drupal_alter() (line 1028 of /home/u5444/domains/realestate.u7394.shiva.vps-private.net/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1028 of /home/u5444/domains/realestate.u7394.shiva.vps-private.net/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1028 of /home/u5444/domains/realestate.u7394.shiva.vps-private.net/includes/module.inc).
Notice: Undefined index: twitter_bootstrap in drupal_theme_initialize() (line 98 of /home/u5444/domains/realestate.u7394.shiva.vps-private.net/includes/theme.inc).
Notice: Trying to get property of non-object in phptemplate_init() (line 12 of /home/u5444/domains/realestate.u7394.shiva.vps-private.net/themes/engines/phptemplate/phptemplate.engine).
Notice: Trying to get property of non-object in drupal_alter() (line 1028 of /home/u5444/domains/realestate.u7394.shiva.vps-private.net/includes/module.inc).

frankbaele’s picture

Status: Active » Fixed

Basetheme should be bootstrap the error should go away then

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mahipal46’s picture

First copy bootstrap_subtheme folder and put into theme folder then change name of folder which u want.

After change info file name themename.info.

In info file change name and description.

then clear cache.

fejn’s picture

Title: How to create sub theme of Twitter bootstrap..? » Clarification on #8?
Version: 7.x-2.x-dev » 7.x-3.0
Issue summary: View changes

I'm not sure I understand where to copy bootstrap_subtheme folder: I found that folder in sites/all/themes/bootstrap/bootstrap_subtheme. In a typical subtheming operation I would expect to copy the bootstrap_subtheme into the sites/all/themes folder, & then change the folder name, etc. as described in #8. Is there a typo in #8 : should it refer to themes folder instead of theme folder??

Thx, Jeff

markhalliwell’s picture

Title: Clarification on #8? » How to create sub theme of Twitter bootstrap..?
Version: 7.x-3.0 » 7.x-2.x-dev

Yes, please follow the documentation: https://drupal.org/node/1978010

charlie charles’s picture

This video will shows you how to make a drupal bootstrap subtheme

http://www.youtube.com/watch?v=6SInIY5TJkQ

I hope that's helpful :)