我试图修改div
类,特别是ty-product-list__item-name
在我的模板文件中,所以它显示为h2
标签。
这个类出现在我的模板文件中就像这样
<div class="ty-product-list__info">
<div class="ty-product-list__item-name">
{assign var="name" value="name_$obj_id"}
{$smarty.capture.$name nofilter}
</div>
使用下面的语句
似乎工作得很好 <h2 class="ty-product-list__item-name">
{assign var="name" value="name_$obj_id"}
{$smarty.capture.$name nofilter}
</h2>