在ty-product-list__item-name CS-Cart中的H2标签



我试图修改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>

完美

最新更新