• Hey,

    The plugin works smoothly and I give it a straight five. However, there is this little thing that has to be considered for your next plugin update.

    At the moment, the plugin loads WordPress default 404 page by generating the meta links and post information, which is really not my thing – as I’m using a custom made theme, I would appreciate if it would look for my 404 template and use it instead.

    You’re the man.

    Yours.

    https://ww.wp.xz.cn/plugins/wps-hide-login/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    In your theme folder you should have a 404.php file that is used to display when there is a page not found. This is the default WordPress behavior, and the recommended way to handle 404 error in a custom theme.

    Thread Starter hakamdirki

    (@hakamdirki)

    Hey,

    Thanks for the response.

    From what I have understood, do I simply just copy and paste the contents of my custom 404.php to the default WordPress? I’m not quiet understanding.

    Sorry about the confusion.

    Yours.

    I don’t know how it is working on your side, but the content you want to display on the 404 page needs to be in the 404.php file in your theme directory.

    You can check the codex to learn more about it : https://codex.ww.wp.xz.cn/Creating_an_Error_404_Page

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom 404 Template’ is closed to new replies.