最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to display text between product thumbnail and CTA button on WooCommerce "Shop" page

programmeradmin1浏览0评论

I have a WooCommerce shop page displaying a series of books.

I'd like to add a line of text between the thumbnail and its corresponding 'View' button.

I thought this would do the trick:

add_action( 'woocommerce_after_shop_loop_item', 'eyates_show_pub_date', 5 );

function eyates_show_pub_date() {
   echo '<p class="shop-badge">Publication Date:</p>';
} 

Instead, it displays the the text below the 'View' button. I can't seem to find any other hooks that would be appropriate; nor can I find a template to add that to.

If anyone could shed some light on the matter for me, I'd be most appreciative.

发布评论

评论列表(0)

  1. 暂无评论