• Resolved Papat0k

    (@papat0k)


    Hello everyone,

    Thanks in advance for any help.

    Basically, I made a rookie mistake and made extensive changes to a parent theme (including php as well as style rewrites). My master plan was to simply copy everything over from the parent theme to the child theme and then then update my theme manually using the theme’s update changelog. I have recently been advised that this is a silly thing to do. Whoops.

    My question: If I were to go in and establish which specific files I had edited and copy only those from the parent to the child theme directory in my ftp, would those files be overwritten on a theme update? To clarify: I would be directly copying the edited style.css, functions.php, header.php, sidebar.php, etc from the parent theme directory to the child theme directory and crossing my fingers.

    If I am off the mark on this, I would really appreciate some advisement. I’m obviously not particularly well-versed with this facet of wordpress, and your help is greatly appreciated.

    Thanks again and I look forward to your responses.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there,

    It should ideally work fine.

    Just create a child theme and put the modified files in the child theme.

    Then you should be able to update the parent theme without any issues.

    Make sure you take the required backups before making any changes.

    Cheers

    Thread Starter Papat0k

    (@papat0k)

    Thanks so much for your reply, and I’ll be sure to backup frequently!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Copying Files To Child Theme’ is closed to new replies.