我努力使特色圖片點擊使用JavaScript:製作特色圖片點擊WordPress的
<div class="post-wrapper">
<section class="post-image">
<img alt="Targ3t Band" class="img-responsive" src="http://i2.wp.com/www.example.com/wp-content/uploads/example.jpg">
<div class="image-shadow"></div>
</section>
<div class="post-container">
<div class="container">
<section class="post-title" style="color:;">
<h2 class="post-heading"><a href=
"http://www.example.com/category/example/">Band –
Targ3t</a></h2>
<ul class="post-info"></ul>
</section>
</div>
</div>
</div>
有誰知道如何添加<a>
到<img>
標籤?
是否需要用JavaScript製作?或者你可以修改WordPress模板? –
發現如何,用一個標籤包裝元素,它具有php - > get_post_permalink(),並不那麼難 –