Hi @whatthecup
You can do this by using a free translation plugin like Loco Translate https://wordpress.org/plugins/loco-translate/.
I know it may sound strange to “translate” your own language, but it works. 🙂
This will allow you to find that phrase and change it to be what you’d like.
Link to image: https://d.pr/i/OM9vC2
Link to image: https://d.pr/i/kPm9xJ
I couldn’t think of a way to do this with CSS, either.
There’s also this option, which I haven’t tested in WC v. 4, but it sounds like a good alternative if you’re willing to add a child theme with its own functions.php. Not as simple as a translating plugin, but if you think you might use the word “dismiss” elsewhere…
Thanks for the reply. We may use dismiss word in the blog so using the translate plugin might not work.
I haven’t created a child theme and using the parent theme only. Can you please guide how to add a child theme. will it change all the modifications i have made so far?
@whatthecup You can find the instructions to create a child theme here. There’s a lot of detail there, but it’s not as complicated as it seems, and almost always a good idea.
Without knowing what modifications you’ve made, I can’t say what you’ll lose, but, for example, if you have added some custom CSS to Appearance -> Customize -> Additional CSS, you can just copy it and paste it into your child theme’s style.css and you’ll be good to go. Other than that, as noted in the article:
You may need to re-save your menu from Appearance > Menus and theme options (including background and header images) after activating the child theme.
It takes a little work the first time, but the whole point in having a child theme is that your modifications are preserved when you update the parent theme, so it will save you work in the long run, and enables you to make all kinds of custom changes easily.