我必须将img响应类添加到wordpress页面模板中的图像。 我的文件被命名为single-product.php。引导:将img响应类添加到缩略图
这是我的代码
<div class="col-md-6 col-xs-12" style="margin-top:35px;">
<h1><?php the_title();?></h1>
</div>
<div class="col-md-6 col-xs-12">
<?php the_post_thumbnail();?>
</div>
现在的问题是如何添加类缩略图?
请帮助我。
我可以在数组中传递style =''吗? – Sikander