I would like to add "Category: " text before category link (in the same line) on Woocommerce single product page. Currently user (specially older users I am aiming my page to) may be confused what the link is. Example below (marked in yellow):
Currently code looks like this, inside "summary entry-summary" div:
<span class="single-product-category">
<a href="https://www.store.domain/category-name/" rel="tag">bielizna ochronna</a>
</span>
Is it doable without editing template?
3
Answers
Ok, I thought I will maybe share my "workaround" (as I don't like adding content to page via CSS); however still counting on some bright idea how to do it differently ;-)
functions.php add the bottom code
Save the changes in the functions.php file.
Refresh single product page to see the updated category link.