css - 如何在 Magento 中编辑扩展的样式?

标签 css magento

我刚刚安装了一个扩展,用于在 magento 的列表页面中显示垂直导航菜单。分机是 https://www.magentocommerce.com/magento-connect/vertical-navigation-with-css-classes.html .它在 template\vertnav\left.phtml 中有 left.phtml 文件。我希望垂直导航显示在 template\catalog\layer\view.phtml 中并更改其样式。所以我将 left.phtml 的内容复制到 view.phtml 但错误显示如下:

enter image description here

这是我的第一个扩展。请帮忙。

最佳答案

您不能在每个文件中调用每个方法。 查找扩展 xml 文件。 打开它,然后在 catalog_category_default 和 catalog_category_layered 下使用扩展 xml 标记中的所有 block 和 css。 现在你可以在 view.phtml 中调用这些函数

关于css - 如何在 Magento 中编辑扩展的样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38048651/

相关文章:

html - 如何用css设置高度和下一节课一样

css - 内联图像高度等于字体高度

JavaScript 计时与 CSS 计时

javascript - 允许 div 滚动 x 量然后停止?

ios - 从 magento 商店到 iOS 应用程序使用的 API

php - 如何修复 Magento 中与 load() 方法相关的内存泄漏?

php - Magento 是线程安全的吗?

javascript - 选择不溢出宽度的多行文本

Magento - 根据标准动态禁用付款方式

php - magento 1.8 使用 php 将产品添加到购物车