Blank Search Results

Hi, I am getting some “blank” search results. Not sure why. The empty boxes with the gray border…

Hi Andrew,

Please check for the following first:

  1. Ensure everything is up to date according to our version compatibility list at https://theme.co/docs/version-compatibility. Please follow the best practices when updating your theme and plugins. See https://theme.co/docs/product-updates for more details.

  2. If you’re using a caching plugin, clear all caches including browser cache then deactivate your caching plugin and other optimization plugins.

  3. If you’re using a CDN, please clear the CDN’s cache and disable optimization services.

  4. Test for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

If the issue persists, please provide us login credentials in a secure note so we can take a closer look.

Cheers!

Thanks! I realized that I this was due to my modifications of the Post template. Is there any way to hide the featured image and on the post, but NOT on the search results page? I am currently using this CSS:

.category-projects .entry-featured,.category-projects .entry-header {display:none;}

But, it hides it everywhere including the search results page…

Hey Andrew,

We’re glad that you’ve found the cause of the issue. Quickly looking at your CSS, it will target the search results page too.

Try using the :not CSS selector and target the search-results body class like the following.

body:not(.search-results) .entry-title {
    display: none;
}

Please don’t copy and paste the code. Instead, learn from it and also learn inspecting the right classes to use using the browser’s element inspector. This is so you could write and debug your own code in the future because as you might already know, fixing custom code is beyond the scope of theme support. If you’re not able to fix, you need to consult with a third-party developer.

Hope that helps thank you for understanding.

Thanks! I was not familiar with the :not selector. This did the job:

body:not(.search-results) .format-link .entry-featured, body:not(.search-results) .format-link .entry-title {
    display: none;
}

I have modified the “Link” post template, and everything is now working fine. My one issue now is that the character limit is not working in the search results. maybe it doesnt by default… it only seems to effect the “Link” post template… is there a setting I am missing somewhere?

Hello Andrew,

Please be aware that the search results will display the excerpts. The number of words for the excerpts can be changed to X > Theme Options > Blog > Content and change the “Excerpt Lengths”.

We would love to know if this has worked for you. Thank you.

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