2016-06-10 26 views
0

删除引导CSS最近,我试图通过覆盖frontend_boostrap.css.scss如何从大礼包前端

删除从狂欢的前端引导的所有实例,我刚才已经包含在应用程序/资产/样式表文件/spree/frontend/frontend_boostrap.css.scss并保持空白,但仍然应用程序加载引导程序的CSS。请指导我如何从前端删除它。

回答

-1

从您的html页面中删除<link href="/assets/bootstrap.css" rel="stylesheet">

0

,最好的办法是添加的文件夹:

# app/views/spree/shared/_head.html.erb then remove bootstrap: 

<meta charset="utf-8"> 
<title><%= title %></title> 
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> 
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1" name="viewport"> 
<%== meta_data_tags %> 
<%= canonical_tag(current_store.url) %> 
<%= favicon_link_tag 'favicon.ico' %> 

<%# Remove below %> 
<%= stylesheet_link_tag 'spree/frontend/all', media: 'screen' %> 

<%= csrf_meta_tags %> 
<%# Remove below %> 
<%= javascript_include_tag 'spree/frontend/all' %> 

<!--[if lt IE 9]> 
    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6/html5shiv.min.js"></script> 
<![endif]--> 
<%= yield :head %> 
<%= render 'spree/shared/translations' %> 

Spree's head

如果你这样做,你会有很多工作要做,因为很少有JavaScript代码会附加引导类。