Ready to get started?Download WordPress


How Do I Change 404 Error Page Title (The One in the Tab) (6 posts)

  1. SUM1
    Posted 1 year ago #


    I want to change the "Nothing found for" text in the tab that shows when a 404 error is encountered. I've searched around the in need of a solution, and I saw one that said to put `if( is_404() ) echo '404 message goes here | ';
    else wp_title( '|', true, 'right' );in the place ofwp_title( '|', true, 'right' )` in header.php. I tried this, but it had no effect. It still says "Nothing found for <search term>". I've tried making small edits to the code like putting in spaces, indents, apostrophes, etc. but nothing worked. How can I achieve this? I'm using the Twenty Eleven theme and my site is here.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Do not edit the Twenty Eleven theme. First create a child theme for your changes and ad a copy of header.php to the new theme.

  3. SUM1
    Posted 1 year ago #

    I didn't. I already have a child theme. I edited it's header.php.

  4. that output seems to be coming from your seo plugin; check the settings.

    an unedited Twenty Eleven shows: 'page not found | site title'

  5. SUM1
    Posted 1 year ago #

    OMG I hadn't thought of that. It might well be a SEO plugin, thanks for telling me! I will check the settings :) .

  6. SUM1
    Posted 1 year ago #

    Yeah there was a setting there for the 404 page and I was able to change it. Thanks so much for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic