2016-08-17 74 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