Search field on 404-page

Home Forums Jevelin Theme Search field on 404-page

Home Forums Jevelin Theme Search field on 404-page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    RESOLVED Posts
  • sachcontrol
    Participant

    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

    sachcontrol
    Participant

    Thank you very much. That worked well 🙂

    You are most welcome here 🙂

Viewing 4 posts - 1 through 4 (of 4 total)