Changing the Search Results - "Nothing to show you right now"... Text and Background Image

Hey Guys,

A quick question in reference to the SEARCH ELEMENT.

When a User types into the Search Element an incorrect or misspelled word, the message

"Nothing to Show Right Now.

It appears whatever you were looking for is no longer here or perhaps wasn’t here to begin with. You might want to try starting over from the homepage to see if you can find what you’re after from there." is shown.

Question

How can I get access to CHANGE CONTENT to this page and in particular the BACKGROUND IMAGE and possibly alter the text that is displayed?

Many thanks,

Simon

Hello Simon,

Thanks for writing in!

Be advised that what you are trying to accomplish requires a template customization, we would highly to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.

Once you have your child theme active and ready, please follow these steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file

<?php

// =============================================================================
// VIEWS/GLOBAL/_CONTENT-NONE.PHP
// -----------------------------------------------------------------------------
// Output when no posts or pages are available.
// =============================================================================

?>

<article id="post-0" class="post-0 post type-post status-publish hentry">
  <div class="entry-wrap">
    <header class="entry-header">
      <h1 class="entry-title"><?php _e( 'Nothing to Show Right Now', '__x__' ); ?></h1>
    </header>
    <div class="entry-content">
      <p><?php _e( "It appears whatever you were looking for is no longer here or perhaps wasn't here to begin with. You might want to try starting over from the homepage to see if you can find what you're after from there.", '__x__' ); ?></p>
    </div>
  </div>
</article> <!-- end #post-0 -->

This is where you change the text contents for the search results when there is no results. Please do not forget to change it.

3] Save the file named as _content-none.php
4] Upload this file to your server in the child theme’s folder wp-content/themes/x-child/framework/views/global/

You will need to create the folders in your child themes because it does not exist yet.

Please let us know how it goes.

Dear Ruenel,

Thank you for your email response to me.

I’ve taken a look at what you have sent me and I think I will skip this for now as:

a.) I’m scared of damaging my site in some way
b.) Technically I am not confident of my skills to complete this process correctly

I may revisit this at a later date and I can refer again to what you have sent me.

Kind Regards,

Simon

You are most welcome.
If you need anything else we can help you with, don’t hesitate to open another thread.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.