• Thanks in advance, guys.

    I would like to be able to customize the page that shows up after a person types something in the search bar and no results come back.

    Example:
    -Let’s say someone types in “shoes” and I have a pants website.
    -The page that shows up is says:
    “Nothing Found
    Sorry, but nothing matched your search terms. Please try again with some different keywords.”
    -I would like to customize what it says and add links to discourage people from simply exiting the page.
    -I am not using a search plugin, but might be in the future.

    *Note: I’m not 100% illiterate but about 70% so talk to me like a newbie anyways.

    Thank you again for your time!

Viewing 1 replies (of 1 total)
  • Hello there,

    Thank you for reaching out to us here.

    The content of the “no results” page is defined in the content-none.php template file. You have edit it in the child theme mode.

    1. Download the Sydney theme and save it to your drive
    2. Unzip the theme package, copy the content-none.php file
    3. Download the premade Sydney child theme here from our site. Then unzip it
    4. Paste the content-none.php into the sydney-child folder
    5. Open this file with code editor application like Atom editor
    6. Edit the following lines:

    <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'sydney' ); ?></p>
    <?php get_search_form(); ?>

    You can add text and HTML tags.

    7. Once you are done editing, zip the sydney-child folder
    8. Log into your site admin area. Then navigate to Appearance > Themes > Add New > Upload Theme > select the sydney-child.zip which you just modified and activate it

    I hope I’ve explained myself well.

    Regards,
    Kharis

Viewing 1 replies (of 1 total)
  • The topic ‘Wanting to customize the search bar's "no results" page’ is closed to new replies.