我知道这与category.twig有关,它在catalogviewthemeYOURTHEMEtemplateproductcategory.twig中。
我试着做任何我在论坛上找到的说明。我试了一下 和 我试过了我试着刷新缓存。我需要更多的帮助。我做错了什么?或者,也许我试过的这些指令是错误的?
似乎你做的一切都对。确保在 目录viewthemeYOURTHEMEtemplateproductcategory.twig。 你的主题 实际上是你当前的主题。从拇指和描述的教程中提取这段代码。
{% if thumb or description %}
<div class="row"> {% if thumb %}
<div class="col-sm-2"><img src="{{ thumb }}" alt="{{ heading_title }}" title="{{ heading_title }}" class="img-thumbnail" /></div>
{% endif %}
{% if description %}
<div class="col-sm-10">{{ description }}</div>
{% endif %}
</div>
<hr>
{% endif %}
或者只用于描述
{% if description %}
<div class="col-sm-10">{{ description }}</div>
{% endif %}
并将其替换到这个模板文件的任何地方(其实几乎所有地方)。
最重要的是清除 树枝 缓存。关于如何做到这一点,我已经在前面的其他文章中描述了这个过程,请阅读。https:/stackoverflow.coma615248553187127。
之后--点击 Ctrl F5 如果您正在使用Chrome或Firefox(或其他组合的浏览器,重新加载页面的缓存清理),而您正在一个类别页面。