404 and search results pages

Hello,

Is it possible to customize 404 and search results pages? 

I would like to customize text and to appear latest news.

Thanks

Comments

  • Hi, @sece43

    What changes do you need for 404 page? 

    However, you can add your own style and HTML for 404 page. There is a file with name 404.php in your Appointment theme folder. Edit the file to add HTML & CSS in your own way if you can. 

    Similarly, for search page, you can see search.php
  • Hi @imraz,

    I would like to add a latest news sections or similar below the main advice.

    Thanks,

  • Create a child theme, ignore if already using. Create a new file in your child theme with name 404.php and edit it, then paste the code in it from https://pastebin.com/WDX0U79Z

    Activate your child theme & let me confirm it!

    Thanks
  • Hello @imraz,

    Your solution works, but I wonder if it's possible to reduce de gap (blue arrow)?

    Thanks,
    gap en 404.png
    112K
  • Copy & paste the custom CSS in your theme's custom CSS box:

    /*404*/
    .error .container-error-404 {
        margin-top: 2% !important;
    }
    /*404*/

    Change the value 2 to increase/ decrease the gap

    Let me know did it work!
  • Perfect @imraz!

    Thanks, thanks and thanks
  • Glad to help you!

    You can rate us with your kind review HERE

    Thanks for contacting us :)
This discussion has been closed.