【问题标题】:Left Column phtml file in MagentoMagento中的左列phtml文件
【发布时间】:2013-12-13 17:17:20
【问题描述】:

我正在尝试更改左栏中的类别,但找不到要修改的文件。这是 div 的名称:

<div class="col-left sidebar">
<div id="categories_list">

你能帮忙吗?谢谢。

编辑: 我找到了解决方案,我在“page.xml”中搜索,在那里我可以找到一个名为“left”的文件,文件位于“app/design/frontend/default/my_theme/template/catalog/navigation/left.phtml”。

感谢你们的帮助:)

【问题讨论】:

  • 你展示了css类。你想改变css吗?你的问题不清楚。

标签: magento


【解决方案1】:

在下面找到&lt;div class="col-left sidebar"&gt; 默认路径

/app/design/frontend/base/default/template/page/2columns-left.phtml

主题路径

/app/design/frontend/default/theme/template/page/2columns-left.phtml

把你的categories_list div 放在这里。

【讨论】:

    【解决方案2】:

    您的问题需要改进。有点模糊。
    但无论如何我都会尝试。内容取决于您的主题。在默认主题中没有具有该 ID 的 div。
    您可以打开template path hints 以查看它的确切模板。

    【讨论】:

      【解决方案3】:
      Using template path hints you can easily find your template path files.
      Login to admin pannel and under
      - System -> Configuration
      - Change the “Configuration Scope” to “Default Store View” (or whichever store view you want to see template paths on)
      - Under Advanced in the left menu click Developer
      - Click “Debug” to expand that section
      - Change “Template Path Hints”  to "Yes"
      - Click Save Configuration
      Now to refresh the front-end and see all the locations of the template files so you can easily modify the correct ones. 
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2016-03-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-04-28
        • 2015-05-27
        • 1970-01-01
        相关资源
        最近更新 更多