WordPress.org

Ready to get started?Download WordPress

Forums

in the 2011 theme what file handles the "Nothing found" page (13 posts)

  1. Scott@adszoom
    Member
    Posted 1 year ago #

    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

    http://www.adszoom.com/category/mortgages_and_insurance/wanted-mortgages_and_insurance/

    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.

  2. Scott@adszoom
    Member
    Posted 1 year ago #

    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.

    http://www.adszoom.com/?s=ervqev+ervqev+rev&cat=0

  3. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    if someone searches a category like the following

    Is that an actual category on your site?

  4. Scott@adszoom
    Member
    Posted 1 year ago #

    yes

  5. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

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

  6. Arie Putranto
    Member
    Posted 1 year ago #

    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>'
  7. Arie Putranto
    Member
    Posted 1 year ago #

    For more information about WordPress template, check on the Codex:
    http://codex.wordpress.org/Template_Hierarchy

  8. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

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

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

  9. Scott@adszoom
    Member
    Posted 1 year ago #

    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? http://www.adszoom.com
    plugin is search by category http://fire-studios.com/blog/ should the code be in the search.php and the category.php? it seams to handle it different on all pages

  10. Scott@adszoom
    Member
    Posted 1 year ago #

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

  11. Scott@adszoom
    Member
    Posted 1 year ago #

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

  12. Scott@adszoom
    Member
    Posted 1 year ago #

    Hi

    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

  13. Scott@adszoom
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic