Magento 2:如何从类别和产品页面中删除styles-m.css

时间:2016-12-27 11:11:11

标签: php magento2

如何从magento 2.X的类别和产品页面中删除默认样式文件(styles-l.css,styles-m.css)

1 个答案:

答案 0 :(得分:3)

var p = Python.CreateEngine();
var scope = p.CreateScope();
var libs = new[] {
    "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2",
    "C:\\Program Files (x86)\\IronPython 2.7\\Lib",
    "C:\\Program Files (x86)\\IronPython 2.7\\DLLs",
    "C:\\Program Files (x86)\\IronPython 2.7",
    "C:\\Program Files (x86)\\IronPython 2.7\\lib\\site-packages"
};

p.SetSearchPaths(libs);
p.ExecuteFile("Test.py", scope);

将其添加到catalog_product_view.xml并检查