我当前正在使用本机widget-image
输出如下内容:
<section class="widget widget_media_image">
<h2 class="widget-title">Some title</h2>
<a href="https://www.example.com/">
<img width="300" height="225" src="..." />
</a>
</section>
这很好,但我想<h2>
包装在<a>
.<有没有办法编辑当前widget image structure 或者我除了注册一个新的widget之外别无选择?这就是我需要的:
<section class="widget widget_media_image">
<a href="https://www.example.com/">
<h2 class="widget-title">Some title</h2>
<img width="300" height="225" src="..." />
</a>
</section>