Theme X transition steps from Parent Theme to Child Them

Hi There,

I cannot seem to find the steps needed when moving from Theme X setup as a parent theme to a child theme. I can see the installation steps if I want to setup a child theme for Theme X, but this appears to guide you if your theme is brand new and not already customized.

I don’t understand how that will integrate with my current setup and if I need to backup, export and import anything to setup a child theme on my web page.

Can someone please help?

Thanks,
Spencer

Hello Spencer,

Thanks for writing in!

If the parent theme is customized then the changes needs to be manually moved to child theme. I am sharing few resources that you can refer to get started:

https://wordpress.org/support/topic/how-to-convert-customized-main-theme-to-child-theme/

Thanks.

Hi Prasant,

Thanks for this. Do you think the plugin “Child Theme Configurator” will work okay with Theme X Child them setup?

I see this warning when moving through the steps:

Hey Spencer,

In my opinion the plugin for moving the changes is not a good idea. What type of customization you have in the parent theme? Are there code level changes (template modifications)? Or the customization is within the WordPress itself? If you have not modified any parent theme template then you only need to install and activate the child theme and all of your settings will be there.

If you have modified the parent theme files then only identify those files and move them (do not delete the files from the parent theme) in the child theme in the same directories as they are in the child theme and that’s it.

For example if you’ve modified the _content-none.php file in the parent theme which is located in x/framework/views/global/ now to move it in the child theme, copy this file first then go to your child theme and follow the same hierarchy of the folders i.e x-child/framework/views/global/ and paste the file in there. If you don’t find any folder inside the child theme and create it to have the same location.

Hope this helps!

Thanks Nabeel,

You were probably right. I went ahead anyways after posting because I really wanted to get this done and over with so I can continue working on the website. However now I’m having an issue with the buttons on my home page: icansommelier.com

I’m not sure why, the button text isn’t showing up and I’m assuming it’s because of something I did with this plugin. I can see if I can revert back, what do you think?

Thanks!

Hey @BigBagoo,

Since reverting to the parent theme fixes the issue, this means that the issue is either in your child theme or your migration to your child theme.

We’re sorry if this wasn’t made clear in our previous replies but we do not offer support for issues that arise from customizations and third-party code in general. You will need to consult with a third-party developer to fix the customization for you.

Thank you for understanding.

Interesting, so I upgraded theme X and that seemed to fix the issue. Looking at my folder structure, it looks like this. Does this look like the correct setup for a child theme?

And if yes, where do I put the Google Analytics snippet? Thanks in advance for all of the help!

Hi @BigBagoo,

That’s correct. As for adding GA analytics, make sure to install Google Analytics extension in Admin > X > Validation > Extensions. Then just add your GA ID in Admin > X > Google Analytics > Google Analytics ID. You don’t need to add any code, just ID. This doesn’t need any child theme changes either.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.