I am looking to customise the default flash message text for certain behaviours but cannot seem to find any reference to them in the code or control panel - does this exist anywhere? And could it be made editable in the CP?

I know I could do something like this but it feels hacky:

{% if craft.app.session.getFlash('notice') == 'User registered.' %}
  {% do craft.app.session.setFlash('notice', 'User registered - please check your email to activate your account.') %}
{% endif %}



You could for example just edit the translation file with the specific user registered flash message.

You can read more about the static translation in the docs.

  • That would do it - thanks.
    – iamkeir
    Nov 22 '19 at 19:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.