Search giving multiple results

Hi. I found the forum topic:

But I was unable to add a comment? Why?

I am having the same problem: a search in my website using the Search icon gives dozens of repeat results of the same post.

I have tried adding the suggested line to CSS but it makes no difference.

Can you please advise?

Website: http://cicadabay.com/oliveskitchen/

Try doing a search for “chicken” and you will see what the problem is.

Regards

Hi @rgboyle,

You cannot add a reply to that post because that thread is closed since it has been more than 10 days since a reply was posted in that thread.

You are not supposed to add the code in the CSS area, Please remove it then Please install and activate the child theme and login through FTP then edit the functions.php then add this code:

add_filter('cornerstone_enable_search', '__return_false');

Let us know how it goes.

Hi.

You can probably tell that I don’t use the forum often. And I only have one website using X, and I very rarely have to get involved in the intricacies of X or website development. So please bear with my ignorance.

I do have a child theme and that is where I thought I was adding the statement. But clearly not.

The child theme link seems to want me to start a new one. Is that the case?

I have not logged in by FTP before nor edited the functions.php.

My concern is that I will make changes that will only make the problem even worse.

Your thoughts on the above would be appreciated.

Regards

Hey @rgboyle,

I checked your site and I see you have child theme active so you can simply add the following code in your child theme’s functions.php file:

add_filter('cornerstone_enable_search', '__return_false');

To do that you don’t necessarily need to login through FTP, you can simply go to Appearance > Editor:

On the right hand panel click on Theme Functions:

At the end of the file paste the above code and click on Update File button:

To learn more about editing WordPress files please see https://wordpress.org/support/article/editing-files/

Hope this helps!

Many thanks for your directions. It took me a while but I got there in the end: it would not accept the change through WordPress and so I had to edit it via FTP.

Regards

Glad you have sorted it out @rgboyle.

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