Okay
  Public Ticket #147943
404 error page
Closed

Comments

  • Toni started the conversation
    Hi, is there a way to create a custom 404 error page? Thanks
  •  1,071
    ThemeNectar replied

    Hey Toni!

    You can technically modify the 404.php file within the theme folder to be anything you want :)

    Cheers!

  • Toni replied

    Ok thanks!

  • Papillon replied

    Hello,

    How can we change the title and the description of "404.php" ? To change "page not found" and the seo description ?

     

    Thank you

  •  1,071
    ThemeNectar replied

    Hey Papillon,

    You can modify the contents of that page in the 404.php file located in the root of the theme folder. The SEO related meta info can be alter via an SEO plugin like Yoast SEO.

    Cheers :)

  • Papillon replied

    Hello !

    I had installed yoast but not seen functionality with 404 page title. I found it.

    Thank you very much !

  •  1,071
    ThemeNectar replied

    You're welcome :)

  •  2
    Ed replied

    What would be the best way to add some customization to the 404 page? I want to be able to have some shortcode buttons that direct them back to certain areas of the site as well as maybe change the message (instead of just 404 error). Would be nice if we had this option on back end but that's probably low on totem pole. 

  •  1,071
    ThemeNectar replied

    Hey Ed!

    You can use shortcodes inside of the 404.php template do calling them inside of this:

    <?php do_shortcode('[shortcode_here]'); ?>

    Also, you can modify the 404.php in a child theme to allow the mods to persist through updates :)

    Cheers

  •  1
    Drew replied

    Hey guys, 

    Any special instructions on having it in the child theme folder?  Just copy the 404.php into the folder?  Is that all there is to it?

  •  8,839
    Tahir replied

    Hey Drew!

    Yes if the 404 is in the child theme it would load first . 

    Thanks


    ThemeNectar Support Team