• Resolved stellamaris5

    (@stellamaris5)


    Can someone please point me to the best way to create a custom 404 page that will match the rest of my site but probably more importantly a custom ‘no search results’ page as I have a 404 redirect plugin so this wont really happen that often? I’m running a child theme and just need to find where to edit this so it keeps it when the theme gets updated

Viewing 9 replies - 1 through 9 (of 9 total)
  • Seen this?

    Thread Starter stellamaris5

    (@stellamaris5)

    no not yet, will do now though, cheers RDELL

    Thread Starter stellamaris5

    (@stellamaris5)

    doesn’t really help me, I want to do more than just change the text. Might want a site map there or something more iteresting so the visitor doesn’t leave

    So, copy the custom-page.php from the parent theme into your child-theme, rename it with the filter in the link suggested by rdell tc_404_content
    you can completely replace the content of that page with the content you want.

    Thread Starter stellamaris5

    (@stellamaris5)

    copy then rename the file from custom-page.php to tc_404_content.php?

    Is that what you mean?

    Do I then go to the Page editor , create a new page and use that newly renamed template? And then publish? that’s it, it will know that this is the page it needs to bring up if there is an error?

    Does this apply to both not found search results and page not found errors?

    Ahah sorry, I made an error, I forgot to write something -> I meant:
    o, copy the custom-page.php from the parent theme into your child-theme, naming it 404.php and change the page the way you want.
    Or use that filter tc_404_content (in your child-theme functions.php)

    Nope you can’t use a page template for the 404 error, is redirected before.. look for a plugin maybe.

    And nope, ?? , the 404 and the no search results are two totally different things, though there’s a filter for no results too:
    tc_no_result_content

    Thread Starter stellamaris5

    (@stellamaris5)

    right, do I understand correctly, I would need to edit the newly copied 404.php file directly to get the page to look how I want?

    are there any snippets for this on the support site maybe for this so I can see what I need to do?

    1) yes
    2) don’t think so ??

    Thread Starter stellamaris5

    (@stellamaris5)

    ok thanks…need to look into that

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom 404 page’ is closed to new replies.