Snippet doesn’t change sale text in handpicked products, only in category page.
-
On my sale badge I have the text “REA” and I want to change it to “Kampanj”.
I’ve added this code snippet:
function woocommerce_custom_sale_text( $text, $post, $_product ) {
return ‘Kampanj’;
}
add_filter(‘woocommerce_sale_flash’, ‘woocommerce_custom_sale_text’, 10, 3);The snippet works, change the text, on category pages, but it doesn’t change the text on sale badge in handpicked products block.
How can I change the text in handpicked products sale badge?
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Snippet doesn’t change sale text in handpicked products, only in category page.’ is closed to new replies.