Hello, I’ve already almost completely finished creating a website using X Theme and I didn’t realize I would need to start with a child theme. Now that I need to use a child theme, how can I do that without losing all the changes and edits I’ve already done?
How can I begin using a child theme while keeping the changes I've already made to the parent theme?
Hello There,
Thanks for writing in!
May we know what are the things you have modified in the parent theme? Please keep in mind that all the settings and custom css/js you may have added in the X > Theme Options, these will be saved in the database and will work just fine when you activate a child theme. On the other hand, if you have made changes to the JS and CSS theme files. That would be overwritten when there is an X update. I would recommend that you add it in a separate files and load it in the child theme when you already have activated the child theme. If you have made any modifications to the PHP codes of the template files, you will need to duplicate those files and put it in the child theme using the same folder so that it will still work. For example, if you have modified the index file like in wp-content/themes/x/framework/views/global/_index.php, you will need to duplicate this file and copy over to the child theme in wp-content/themes/x-child/framework/views/global/_index.php.
Hope this helps.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.