WordPress.org

Ready to get started?Download WordPress

Forums

How to upgrade theme while keeping customizations (4 posts)

  1. inetsfr
    Member
    Posted 2 years ago #

    Hi,

    I'd like to know how I can upgrade my theme while keeping theme customizations. I had some work done to my theme just recently. Many files within the theme have been modified. The theme has an upgrade available now and I would like to upgrade my existing one with the new one. I'm not aware what changes have been made and to which files modifications had been made (I hired a programmer to make the changes). How can I upgrade now without overwriting the modifications?

    Thanks.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    You cannot upgrade a theme and keep any customisations you have made - unless you have used a child theme.

  3. inetsfr
    Member
    Posted 2 years ago #

    Hi,

    I understand what a child theme is. But, how does that cover changes to php files? Say for instance the single.php file has been customized and I move the customized version into my child theme. That's fine as long as the parent theme does not get upgraded again. But what do I do when the parent theme does get upgraded? I'm not sure what files have been modified by the update. So say I intall the update and the update happens to include a modified single.php file. Well, that modified file won't be used by my child theme: the child's single.php file will be used instead. Which does me no good. I want to be able to keep my modification and when an upgrade to the theme files is necessary, merge my customizations into the upgrade.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    I move the customized version into my child theme

    You don't move files into child themes. You make custom copies of them.

    the update happens to include a modified single.php file

    That won't affect the child theme's copy. If you want to merge any changes into your child theme, you would need to examine each of the parent's template files and make any changes to the child manually.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags