• Resolved david221

    (@david221)


    Currently, I have version 3.5.1 for a website that I’ve been working on. I’ve been using a child theme to build this site, but I’ve made only one little change in the functions php file in the parent theme. I’m not sure if I was supposed to copy that php file and put it in the child theme folder – I wasn’t sure if I was supposed to do this at the time. So I’m wondering if I can update my WordPress without causing any problems? If there is anything I need to do to fix the child theme and php file beforehand, how do I go about it? Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • an update of WordPress will not change any existing child themes; however, when you update your theme, any changes will get overwritten/lost.

    I’m not sure if I was supposed to copy that php file and put it in the child theme folder

    no – only changes via filters, actions, etc or pluggable functions should be added into functions.php of the child theme.
    http://codex.wordpress.org/Child_Themes#Using_functions.php

    I’ve made only one little change in the functions php file in the parent theme

    what change?

    Thread Starter david221

    (@david221)

    I have just looked at my work carefully and I realized that I made a mistake about which php file I changed. It was the header php file – not the functions one, and the only change I made was typing the name of the website in the <title> tag. So I gather it’s safe to update my WordPress?

    it’s safe to update my WordPress?

    yes

    to be sure about your theme, copy header.php (inclucding your edits) into your child theme’s folder.

    Thread Starter david221

    (@david221)

    Thank you, I’ll give it a go soon.

    Thread Starter david221

    (@david221)

    Yes, the updating worked without any hassles. Thank you very much, alchymyth.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Updating WordPress with a Child Theme’ is closed to new replies.