Support » Theme: Customizr » Change "Page Not Found" text

  • Resolved RandomNick


    Hi again!
    Can I change description on 404 page (“Page Not Found”) to my language? I didn’t found that string in .po file, and I can’t change it via say what plugin. I mean on text in browser tab – Page Not Found | My Site Title.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I changed it with Yoast SEO plugin. Titles and metas > other > special pages. Resolved 🙂

    Thanks for this. You’re right. I cannot find this window title text anywhere either. You can see it in other non-English sites too here (which doesn’t have qTranslate installed) and here (which does).

    It’s good that Yoast fixes it. And I note that you can use the qTranslate shortcodes in there too, which makes it even better.

    But this made me wonder: Was Yoast causing it? I just deactivated Yoast and noticed that Page Not Found changed to Page not found. So no, it’s not causing it, but it alters it.

    So if you have Yoast (or, I suppose, another SEO plugin) then you can change it there.

    But if you don’t have Yoast, it needs intercepting somehow. The only place I can find “Page not found” is in WP’s own general-template.php.

    I also checked out the no results page from the search page and I see that the same is happening. I shows Search Results in the title. Again, you can change it in Yoast (where the default is You searched for …), but I can’t figure out where this is being picked up from without Yoast installed.

    @nikeo: any ideas? Can this be caught and translated somehow?

    Hi, this is the default WordPress text for the is_404() case.
    You can filter it without a plugin by using the wp_title filter.

    For example:

    add_filter('wp_title' , 'my_custom_404_title' );
    function my_custom_404_title($title) {
    //if we are not displaying the error 404 page => returns the original $title
    if ( ! is_404() )
    return $title;
    //else set a new value $title
    return 'My custom 404 title';

    I might add something in the next update about that.

    Thank you guys for great theme and support! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change "Page Not Found" text’ is closed to new replies.