2016-08-17 75 views
1

中为引导程序7.x-3.6创建子主题。指导我如何创建子主题。 我收到以下错误。如何在drupal 7中使用引导程序7.x-3.6在drupal 7

Notice: Undefined variable: navbar_classes in include() (line 76 of C:\xampp\htdocs\Drupal\sites\all\themes\Indivar\templates\page.tpl.php). 
Notice: Undefined variable: container_class in include() (line 77 of C:\xampp\htdocs\Drupal\sites\all\themes\Indivar\templates\page.tpl.php). 
Notice: Undefined variable: container_class in include() (line 117 of C:\xampp\htdocs\Drupal\sites\all\themes\Indivar\templates\page.tpl.php). 
Notice: Undefined variable: content_column_class in include() (line 135 of C:\xampp\htdocs\Drupal\sites\all\themes\Indivar\templates\page.tpl.php). 
Notice: Undefined variable: container_class in include() (line 169 of C:\xampp\htdocs\Drupal\sites\all\themes\Indivar\templates\page.tpl.php). 
Notice: Undefined variable: html_attributes in include() (line 57 of C:\xampp\htdocs\Drupal\sites\all\themes\Indivar\templates\html.tpl.php). 
Notice: Undefined variable: body_attributes in include() (line 71 of C:\xampp\htdocs\Drupal\sites\all\themes\Indivar\templates\html.tpl.php). 
+0

您应该提供有关您在执行这些错误之前所做的更多信息,以及您尝试解决此问题的方法:http://stackoverflow.com/help/how-to-ask –

+1

我正在使用bootstrap 7.x -3.6,然后在目录sites-> all-> theme-> subtheme中创建一个子主题。 然后复制子主题下的模板文件夹中的page.tpl和html.tpl,并在子主题中添加info文件。当我们启用分主题时,就会得到这些错误。 –

回答

0

您应该重命名次主题文件夹以及.info文件..

这应该是文件夹结构

/网站/所有/主题/引导

/网站/ all/themes/subtheme_name

/sites/all/themes/subtheme_name/subtheme_name.info