• Hi all,

    I’ve done quite a bit of customization to my site’s templates. I was told that templates probably won’t change much as themes update, but now that my customizations are just about complete, I think maybe I should copy them into a set of templates in a child theme so that if my custom work does disappear when the theme updates, all I have to do is activate my child theme and I haven’t lost anything. What is the easiest way to do this?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • threadi

    (@threadi)

    How to create a child theme is described here: https://developer.www.ads-software.com/themes/advanced-topics/child-themes/

    In your case, you would have to create the child theme and then store your individual customisations in it. You should then reinstall the parent theme so that its files are original again. As soon as you activate your child theme, your customisations will take effect.

    Thread Starter bob cavanaugh

    (@bobdavcav)

    First of all, I’m a bit confused. Since I’m using a block theme, do I even need a child theme if all my modifications have been done to blocks? That’s why I didn’t create a child theme originally, because all the modifications I’ve done have been using blocks rather than any custom PHP, and I’d like to keep it that way. If I do need a child theme, is there a way to easily copy the customizations I’ve made to Twenty Twenty Four blocks to a new child theme, or do I have to manually do the work over again?

    Moderator James Huff

    (@macmanx)

    If you’re only working with blocks, you don’t need a child theme.

    You only need a child theme if you’re modifying theme files directly.

    Thread Starter bob cavanaugh

    (@bobdavcav)

    Thanks James. Is there a way to save my blocks so that I can minimize the work I have to do should I need to reinstall WordPress?

    Moderator James Huff

    (@macmanx)

    Hmmm, first I’m curious why you’d want to do that.

    You don’t need a child theme if all you’re doing if modifying blocks.

    Thread Starter bob cavanaugh

    (@bobdavcav)

    I ran a WordPress site for about two and a half years and never had to reinstall, and I’m at about a year and a half on another site I run, so I would think the odds of having to reinstall are low. If that does ever happen though, it’s going to take some time to restore the layout I’ve got now, and I’m wondering if there might be an easier way to restore my site back to the way it is now in the unlikely event something happened. Then again, I suppose I would lose all my content in that situation too, right?

    Moderator James Huff

    (@macmanx)

    Ah ok, I recommend keeping full backups, so if anything happens, you can recover everything: https://developer.www.ads-software.com/advanced-administration/security/backup/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘moving customizations to a child theme’ is closed to new replies.