Free shipping text translation | WordPress.org

[ad_1]

I want to translate the text for free shipping

As you can see in the picture
I want to translate the text
The text inside the circle is black, I want to translate

The text inside the circle is yellow. I also want to translate the text and also put it in the middle of the box`

I used both symbols in functions.php
But they did nothing

add_filter( 'flexible_shipping_free_shipping_notice_text', 'wpdesk_flexible_shipping_free_shipping_notice_text', 10, 2 ); 
function wpdesk_flexible_shipping_free_shipping_notice_text( $notice_text, $amount ) { 
return sprintf( 'You only need %1$s more to get free shipping!', wc_price( $amount ) ); 
}

add_filter( ‘flexible_shipping_free_shipping_notice_text’, ‘wpdesk_flexible_shipping_free_shipping_notice_text’, 10, 2 ); function wpdesk_flexible_shipping_free_shipping_notice_text( $notice_text, $amount ) { return sprintf( ‘Spend %1$s more to get free shipping!’, wc_price( $amount ) ); }

Is there any help or other code other than them that translate the text and translate the word inside the box and put it in the middle of the box

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer