Search Page Blank/Not Working

Hello!

When I use the nav bar search it takes me to a blank page even though I know the term “team” is on the website (see below).

Example:
http://537.214.myftpupload.com/?s=team

Do you know why it’s not working? Login credentials attached in secure note.

Hello There,

Thanks for writing in!

The search should display something for at least the page titles. It is not displaying in your case because you have added this custom css

.entry-header {
    display: none;
}

Please keep in mind that Pages will also be displayed in search results. And by default, page excerpts were disabled by WordPress. This is why you are only supposed to be seeing page titles and no descriptions in it. If you want to have page excerpts, I would recommend that you install a child theme since this would requires a template customization. This allows you to make code changes that won’t be overwritten when an X update is released. After the child theme is set up, please add the following code in your child theme’s functions.php file

// Add manual excerpts to pages
// =============================================================================
add_action( 'init', 'my_add_excerpts_to_pages' );
function my_add_excerpts_to_pages() {
     add_post_type_support( 'page', 'excerpt' );
}
// =============================================================================

To display the page excerpt, you may have to use the manual excerpts. To add an excerpt to a page, simply write one in the Excerpt field under the post edit box. Please see the screenshot below: http://prntscr.com/a57dbr

Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts here: https://codex.wordpress.org/Excerpt

We would loved to know if this has work for you. Thank you.

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