Support » Fixing WordPress » Child Theme Query

  • Resolved esugrue

    (@esugrue)


    Hi!

    I have a purchased theme from Themeforest but have made a few changes to some files and to functions.php

    I read the page in the codex about child themes and it seems too simple so I’m probably not understanding it.

    I wanted to check:

    – A child theme will allow the parent theme to be updated without losing an updates I have made to the theme file.

    – Any file except functions.php from the child theme will be loaded instead of the same file in the parents theme – replacing it.

    – functions.php (child) will be loaded before functions.php (parent) but both will be loaded so the functions.php (child) should only contain additions

    So in practice, I had some help the other day in adding a widget to my theme and I made changes to the functions.php – now if as is when the theme gets updated I will lose the changes so I should remove the changes from functions.php (parent), create a new file and place it in the child directory?

    Is that basically correct or have I oversimplified it all?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You got it :)!

    The only “but” here is that not all themes will work with a standard child theme – so you may want to check with the developer of yours before you start down that path.

    Thread Starter esugrue

    (@esugrue)

    HI

    Thanks for the quick response, I thought it would be more complicated than that so I wanted to make sure I didn’t misunderstand it all.

    Thanks for the heads up that not all themes may work, so I will check

    Ernie

    LOL – great cat picture BTW :)! I have two Maine Coons.

    Thread Starter esugrue

    (@esugrue)

    Thanks, yes Rocco (my cat) is a very good-natured cat (I mean he puts up with my s—).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Child Theme Query’ is closed to new replies.