Support » Themes and Templates » in the 2011 theme what file handles the "Nothing found" page

  • Hi

    We have a child theme of the 2011 and are having issue with the “nothing found” page.

    this page is served up if someone searches a category like the following and there are 0 results

    Can someone tell me what file to edit this? I cant figure out how to access this because its dynamically generated and I don’t know what file to change. I did try archive.php but this did not change anything if i made a change in it.

    Please help just need to know the correct file to edit.

Viewing 12 replies - 1 through 12 (of 12 total)
  • it dose look right if you search via the search bar and nothing is found but if you click the category link there is an issue.



    Forum Moderator

    if someone searches a category like the following

    Is that an actual category on your site?




    Forum Moderator

    And I assume that the parent theme is working just fine?

    It seems to me like the first link indeed showing an archive page, but there’s no related post exists inside the category. That’s not an issue, it simply tells your visitor as it described in the page.

    Both serve different content since those are generated from different template file. By default and common, archive are served by either archive.php, category.php or category-categoryname.php. Search result are served by the search.php, if none of them exists WP will use index.php.

    Regarding to the 2011, it should be category.php which serve the Category Archive. Take a look inside it and you will find a line that says:

    <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>'

    For more information about WordPress template, check on the Codex:



    Forum Moderator

    for the category ‘not found’ message, this is in category.php;

    as for the search results – are you using a plugin for searches?

    Ok cool got it I am using a plug in search by category and its installed with the supporting code on the search.php and now category.php it seems to not find any results then locks up ( drop down will work on some pages ) if you do a search and there is nothing found you will see can you give me pointers on this?
    plugin is search by category should the code be in the search.php and the category.php? it seams to handle it different on all pages

    ya it seams this plug in will not work on single.php

    the categories drop down dose not work on single .php and the nothing found page as well


    Yes alchymyth we are i named it above not sure if it will work on the search.php page and the single.php dose not find results and no drop down on the ” nothing found page or the single.php

    if you have a better search by categories idea or plugin please let me know. Maybe I should put this in the header not the single.php categories.php search.php ecs? this way it may work the same each time?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘in the 2011 theme what file handles the "Nothing found" page’ is closed to new replies.