child theme

  • yogot7r

    #8881

    So my website is a couple years old now. In the beginning I didn’t know anything about child themes and edited several things in the main graphene theme ( i believe in functions.php and style.css). I know I made a huge mistake by doing this. I can’t update my graphene theme without it messing everything up. I don’t remember what things I changed and there was a good amount that I did change. What is the best way to go about fixing this? Thanks in advance!

    Luko

    #42346

    Download current version of style.css, functions.php and any other file that you altered.

    Update theme.

    Install child-theme.

    All code from downloaded file that aren’t in updated files put in child theme. (You should download new files and compere the code from old ones).

    This is not as bad as it sounds 🙂

    yogot7r

    #42347

    I’m guessing it’s not a good idea to copy over everything from each file into the child theme then update? I think I understand what you are saying but it sounds like it will take forever to compare.

    Mod

    Kenneth John Odle

    #42348
    Quote:
    I’m guessing it’s not a good idea to copy over everything from each file into the child theme then update?

    You’re correct; this can cause serious problems.

    Instead, use a program like diff checker to compare the differences between the two files. There are also web sites that will do this for you.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.