• richieps

    (@richieps)


    Hi there,

    Is there a method within GP to make use of a custom 404 page?

    I realise that there are plugins that will do this but I’d like to be able to do it within GP if at all possible. Is it feasible?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Leo

    (@leohsiang)

    Hi there,

    That sort of depends on what you are looking to customize.

    Sometimes you can just use hooks with conditional tags:
    https://docs.generatepress.com/article/hooks-visual-guide/
    https://codex.wordpress.org/Conditional_Tags#A_404_Not_Found_Page

    But using a plugin like this would be the easiest:
    https://wordpress.org/plugins/404page/

    Thread Starter richieps

    (@richieps)

    Thanks Leo.

    All I want to do is have a custom WordPress page that I’ve designed show-up whenever anybody looks for a page that doesn’t exist on my site (eg https://richiesroom.com/no-such-page ).

    So, for somebody whose coding experience is primarily in VBA for Excel and a beginner to CSS, how easy would it be to implement?

    sjoerd89

    (@sjoerd89)

    The easiest way to do this would be with a plugin like : 404page – your smart custom 404 error page. There you can just make a regular page and assign it to be a 404page. Then you can use your own design.

    Thread Starter richieps

    (@richieps)

    Hi @sjoerd89

    Thanks for your feedback. 🙂

    I do realise that there are plugins that can do this and that they are the easiest option. I just wanted to investigate the possibility of doing it from within GP (CSS and HTML are new languages for me and I’m looking to expand my knowledge in these areas).

    sjoerd89

    (@sjoerd89)

    For my website i made some changes to the 404.php and added them to my child-theme. This is also an option in combination with css.

    Thread Starter richieps

    (@richieps)

    OK, thanks, I’ll take a look 🙂

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

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