Home › Forums › Jevelin Theme › Search field on 404-page
Home › Forums › Jevelin Theme › Search field on 404-page
Hello,
how can I include a search field in the 404-page? I already have the 404.9hp file in the child theme and can edit the code. I was just wondering if you can provide the code snippets which I have to use to include the search field to allow the user to search for content on my blog.
Thank you in advance
Best regards
Stefan
Solution for this topic
Hi Stefan,
I hope you are well today and thank you for your question.
You can use below get_search_form function in your child theme 404.php file to display search field.
https://developer.wordpress.org/reference/functions/get_search_form/
Best regards,
Shufflehound team
Thank you very much. That worked well 🙂
You are most welcome here 🙂