Forum

Thread tagged as: Question

Search Not Working

Hello,

I am trying to add search functionality to all of my pages.

I used search.php as a guide.

           <?php perch_search_form(); ?>

I added the above code to the template where I want the Perch search form to display. When entered, it stays on the page. See this page for an example: https://pacasatesting.site/local-programs/ Do I need to add something else to the page to have it work?

Thanks for your help, Trevor Brandt

Trevor Brandt

Trevor Brandt 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Which page are you using to display your search results? Have you set the action of the form to point to it?

I wanted search.php to display results. And no, I couldn't find the form to adjust it. Is it in the template folder?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, it is.

perch/templates/search/search-form.html