Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

Change text on 404 page

Started by Klemen 7 years ago · 4 replies · 2720 views
7 years ago

Hi, all.
I am new to grav and i am trying to personalise the theme...
But i got stuck when i wanted to change the default text in Error 404 page:
"Woops. Looks like this page doesn't exist."

Can someone direct me of where to look for this text - i wasn't able to find it and i couldnt find any hints on this forum...

Cheers,
Klemen

7 years ago

Hi, dvawolk!
Do you have plugin Error?
Enable it, set 404 route (e.g., /error), change text in users/pages/error/error.md

7 years ago

Hi, underr!
I have the plugin.
The default text does come from error.md but not directly from it...
I didn't find the origin of
{{ 'PLUGIN_ERROR.ERROR_MESSAGE'|t }}
that was in the error.md -- where does it get that text

Woops. Looks like this page doesn’t exist.

Any clue?

...Of course i can hard code it to error.md but it would be nice to know it...

Cheers,
Klemen

7 years ago

It's in user/plugins/error/language.yaml

7 years ago

Thanks, i did it!

Cheers!

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 193 2 months ago
Themes & Styling · by Ian, 2 months ago
3 90 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 449 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 44 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 123 3 months ago