• I’ve done customisation to templates on 2022 theme. If I create child theme & activate this child theme from 2022 theme then all the template customisations are gone. It seems that these template customisations are saved in database and not in files? So how do we copy the customisations from patent to child templates if possible?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey, it happened the same to me. I don’t know if this is the right way to do it, but I found an Export option in the 3 dots menu at the top-right of the editor. If you upload those files to your child theme, I think you should have the customizations you did to the main Theme.

    In my case, the problem was that the header dissapeared with an error if I followed these steps. Maybe you’re luckier than me… Good luck!

    I have a similar question. In my case I was imagining that I would want to customize templates on a staging site and then copy them over to the production site. I saw the option to Export, but there seems to be missing a corresponding Import.

    Creating a child theme and uploading the templates/parts as files is not completely unreasonable, but then I wonder if storing these things in files versus in the database will have any consequences in the future.

    Well, in v5.9.3 I see the export option in the ellipses as mentioned above.

    It exports a zip-file; that resulting zip-file when uploaded to themes, it fails with missing ‘styles.css’. It’s also missing the ‘themes.json’ and ‘functions.php’.

    It’s a partial export. So, unless I’m missing something, doesn’t seem there is an export/copy theme option.

    Since there haven’t been any answers in several months to the questions asked here, it seems like there isn’t any support in this thread.

    Maybe in the future someone will be able to answer these questions.

    I encounter similar problems like the other guys already mentioned here:

    1) The “export” button in the site editor gives an error message (“an error occurred while creating the site export.”)

    2) Even if the export worked, there is no “import” button.

    • This reply was modified 2 years, 5 months ago by rhisflow.

    Out of frustration and many wasted hours reading through Google search responses I found two references to producing child themes for twenty twentytwo. The first one suggested was to use a plugin called “Create Block Theme” which shows as from www.remarpro.com The version provided was 1.1.2. The writer had apparently used it with success. Create Block Theme shows up in Appearance. The bullet selected said ” Create child of Twenty Twenty-Two
    [Create a new child theme. The currently activated theme will be the parent theme.] ”
    It creates a zip file to download… unfortunately not expandable (i.e. explorer, PeaZip)… something about a password needed to unpack this 6Kb file. Also tried its clone the theme option”
    Clone Twenty Twenty-Two
    [Create a new theme cloning the activated theme. The resulting theme will have all of the assets of the activated theme as well as user changes.]
    ” and the resulting 5,799Kb file also would not unpack.
    Went on to “Child Theme Wizard” Version 1.4 updated 3 days ago, compatible with 6.0.1 and ” a simple 1 click wizard updated” The Child Theme Wizard showed in Tools. Clicking on it revealed it knew that Twenty Twenty-Two was currently active. It did create the theme directtory with the style and functions in it.
    Using that child theme brought up pages that DID NOT include the expected Header and Footer. Result on going back to the twenty twenty two theme after all this was a header that remembered its navigation but ther rest was gone and a fotter that had gone back to virgin. Couple of hours later the Editor (Beta) had recreated the header and footer. THE CONCEPT OF A CHILD THEME HAS SOLID ROOTS… HOW CAM WORDPRESS PUT ITS AVAILABLITY SO LOW ON ITS PRIORITY OR FOR THAT MATTER IGNORE ALL THESE REQUESTS FOR DIRECTION IN CREATION OF A MEANINGFUL CHILD THEME ? Time to turn off automatic updates of WP 6.0.1 , turn on the UpDraft backups, till they sort out a way we can save our work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to copy templates from twenty twenty two theme to child theme?’ is closed to new replies.