-
YEAR93
Hello,
How can I change my 404 page title from ‘404 – Pagina niet gevonden’ into ‘Pagina niet gevonden | <site title>’?
-
Fernando
Hi there,
You can create a Block Element – Content Template and assign it to display to the 404 page.
This would allow you to override that entire page.
Alternatively, you can try adding a snippet like this:
add_filter( 'generate_404_title','generate_custom_404_title' ); function generate_custom_404_title() { return 'Custom 404 title'; }
Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets
-
YEAR93
Hi,
I already created a block element – content template for the 404 page. The snippet didn’t work for me. I’ve provided link to my 404 page below.
-
As you are using content template, why not just add site title into the current h1 headline block?
-
YEAR93
I did, but for some reason breadcrumbs still showing “404 – “. View screenshot 1 & 2.
-
We can not control how breadcrumb outputs, the filter can only change the title in GP’s template.
You will need to reach out to the breadcrumbs plugin for this.
-
YEAR93
Okay, thank you.
-
You are welcome 🙂
- You must be logged in to reply to this topic.