Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #472529

    Hi I have edited two files on my website.
    1. I wanted to remove the post showing on the 404 page. I removed this code from the:
    WP-content/themes/enfold/included/error404.php

    // EDITED

    This worked just fine, looks great,but I am now using a Child-theme. How do I make the same change so it will not get overwritten with every update?
    Thank.

    #472533

    Sorry, I meant to say that I have edited ONE file only…

    #472849

    Hey!

    You should be able to simply copy the 404 file to your child theme, could you try if that works out or not?

    Cheers!
    Rikard

    #472924

    The thing is: I go to our FTP files and change the file…there is only one file?
    Thanks

    #473177

    Hey!

    Add a folder called “includes” in the child theme folder then copy the error404.php file inside. It will not be overwritten when you update the theme.

    Cheers!
    Ismael

    #473545

    Great, thank you. That seems to have done the trick. This is great stuff :-)
    Please close post.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Editing error404 in child themes’ is closed to new replies.