Store Notice - by lakers1983 - on WordPress WooCommerce support

This topic has 4 replies, 2 voices, and was last updated 4 years ago ago by Robert Hall

  • Avatar: lakers1983
    lakers1983
    Participant
    February 13, 2021 at 09:36

    Hi, do you know how we can change the woocommerce store notice default “dismiss” word? Thanks!

    3 Answers
    Avatar: Robert Hall
    Robert Hall
    Participant
    February 13, 2021 at 12:19

    Hi

    You can change your woocommerce store notice by going to Dashboard > Xstore > Theme Option > WooCommerce (Shop) > Store Notice https://prnt.sc/zbvx7s

    Avatar: lakers1983
    lakers1983
    Participant
    February 13, 2021 at 12:29

    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”

    Avatar: Robert Hall
    Robert Hall
    Participant
    February 13, 2021 at 18:58

    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' );
  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Store Notice’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.