admin管理员组文章数量:1429061
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.
本文标签: How to display text between product thumbnail and CTA button on WooCommerce quotShopquot page
版权声明:本文标题:How to display text between product thumbnail and CTA button on WooCommerce "Shop" page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745474470a2659897.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论