• Resolved whatthecup

    (@whatthecup)


    Hello,

    I am trying to change the text within the sitewide store notice from ‘DISMISS’ to ‘OK’. Can you please share some CSS code to do that?

    Thank you in advance

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • AJ a11n

    (@amandasjackson)

    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

    linux4me2

    (@linux4me2)

    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…

    Thread Starter whatthecup

    (@whatthecup)

    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?

    linux4me2

    (@linux4me2)

    @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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sitewide store notice: Change Dismiss to Ok’ is closed to new replies.