Hi lorro,
Thanks very much for your reply. Unfortunately, I can’t provide a link to my site as it is behind a “coming soon” page. However, since posting my request for help, I came across a very useful post by alchymyth that has steered me in the right direction:
https://www.ads-software.com/support/topic/showing-post-title-as-overlay-on-featured-image-on-hover?replies=3
Just in case this might help someone else, this is what I’ve done:
content-product.php:
<span class=”catalog-image-wrapper”>
<?php
/**
* woocommerce_before_shop_loop_item_title hook
*
* @hooked woocommerce_show_product_loop_sale_flash – 10
* @hooked woocommerce_template_loop_product_thumbnail – 10
*/
do_action( ‘woocommerce_before_shop_loop_item_title’ );
?>
<span>click here for details</span>
</span>
style.css:
.archive .type-product img:hover {opacity: 0.2;}
.archive .catalog-image-wrapper span {visibility: hidden;}
.archive .catalog-image-wrapper:hover span {visibility: visible;}
.archive .catalog-image-wrapper span {position: absolute;
top: 140px; left: 130px;color: #404040;}
Thanks again lorro for responding.