Hi, do you know how we can change the woocommerce store notice default “dismiss” word? Thanks!
This topic has 4 replies, 2 voices, and was last updated 4 years ago ago by Robert Hall
Hi, do you know how we can change the woocommerce store notice default “dismiss” word? Thanks!
Hi
You can change your woocommerce store notice by going to Dashboard > Xstore > Theme Option > WooCommerce (Shop) > Store Notice https://prnt.sc/zbvx7s
I know that part but how to change the default word “dismiss”? When user clicks on the word “dismiss”, the store notice closes. Instead of the word “dismiss” I want to make it “close”
Hi
Kindly add the following mentioned code in your function.php file , please make sure get your file backup or use this code in child theme.
function replace_dismiss( $notice ){
return str_replace( 'Dismiss', 'Close', $notice );
}
add_filter( 'woocommerce_demo_store','replace_dismiss' );
The issue related to '‘Store Notice’' has been successfully resolved, and the topic is now closed for further responses