Search is showing hundreds of the same article

Hi! When I click the search icon on my site it is showing hundreds of the same article or page instead of just one. How do I fix this?

I already tried deactivating my plugins to see if any of them were causing the error, but it doesn’t seem to be any of the plugins. Here is my site: http://thestrangeisbeautiful.com/

That image shows when I searched “yoga” it showed more than 360 of just that one article or page.

Hello @shannenroberts,

Thanks for writing in!

The Cornerstone Search feature was recently added to make Cornerstone V2 elements content available for WordPress search. But since then it currently has a problem outputting the search results, you can temporarily disable it by adding this code in the child theme’s functions.php.

add_filter('cornerstone_enable_search', '__return_false');

That line or temporary solutions, in general, should be removed when an official fix is included in one of our releases. You can check the official solutions in our Changelog: https://theme.co/changelog

Hope that helps and we’re sorry for the inconvenience.

Hi, so I hear “child’s theme” a lot but I actually don’t think I ever made a child’s theme? Is there a way to add that code without a child’s theme? Or how can I switch to a child’s theme?

Hi @shannenroberts,

You need a child theme to add that line of code, and you might really need a child theme down the road of your site development. You can download child themes here, download the X Child theme since you’re using X.

Then follow this guide provided here. Its actually pretty easy its like installing a regular theme.

Then access your child theme’s functions.php file via FTP and add the line of code provided above.

Thanks,

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