admin管理员组文章数量:1130349
I just started at a new company with multiple WordPress sites and none of them use child themes.
I've seen posts here about using comparison scripts to compare the files to a fresh version of that theme, but I'm not too familiar with scripting and no one even provided an example of how to do that.
I'm also wondering how I would go about getting all of the other settings inside WordPress to carry over (theme customizations, homepage settings, etc.). I know on some themes there can be a lot of drag-and-drop type editing that you lose when moving to a new theme. I already made that mistake once here and had to quickly change it back to the parent theme.
TL;DR
How can I create child themes and keep everything looking the same as parent themes that are already active?
I just started at a new company with multiple WordPress sites and none of them use child themes.
I've seen posts here about using comparison scripts to compare the files to a fresh version of that theme, but I'm not too familiar with scripting and no one even provided an example of how to do that.
I'm also wondering how I would go about getting all of the other settings inside WordPress to carry over (theme customizations, homepage settings, etc.). I know on some themes there can be a lot of drag-and-drop type editing that you lose when moving to a new theme. I already made that mistake once here and had to quickly change it back to the parent theme.
TL;DR
How can I create child themes and keep everything looking the same as parent themes that are already active?
- 2 There's no general answer. It depends entirely on what the original theme is. You should ask your theme author. – Jacob Peattie Commented Jan 4, 2019 at 13:39
- @JacobPeattie I was afraid of that. They're all different themes haha – Manly Commented Jan 4, 2019 at 13:50
1 Answer
Reset to default 1This is tough. I don't know of an automated way of doing this because every theme is different and who knows what changes you (or whoever) have already made to the original theme.
In my opinion, if you want to do this correctly and with the best results you are going to need to do this manually.
I would, setup a local install of wordpress, download the original unedited theme and install it on my local setup, then make your child theme. You could go through the theme options in the admin fairly easy just by opening your local site and the live site side by side and comparing. This will get all your settings aligned. You could also grab any styles from the customizer and put in your local site.
With the site settings aligned, now you need to make the same edits to your files but this time within your new child theme. Depending on what IDE or text editor you use, you can probably install a diff tool that will compare the differences between files. Similar to this online diff tool.
If you go slow and go section by section or page by page and compare the live version with your local install eventually you will have a matching child theme.
Not fast but it will get you there!
I just started at a new company with multiple WordPress sites and none of them use child themes.
I've seen posts here about using comparison scripts to compare the files to a fresh version of that theme, but I'm not too familiar with scripting and no one even provided an example of how to do that.
I'm also wondering how I would go about getting all of the other settings inside WordPress to carry over (theme customizations, homepage settings, etc.). I know on some themes there can be a lot of drag-and-drop type editing that you lose when moving to a new theme. I already made that mistake once here and had to quickly change it back to the parent theme.
TL;DR
How can I create child themes and keep everything looking the same as parent themes that are already active?
I just started at a new company with multiple WordPress sites and none of them use child themes.
I've seen posts here about using comparison scripts to compare the files to a fresh version of that theme, but I'm not too familiar with scripting and no one even provided an example of how to do that.
I'm also wondering how I would go about getting all of the other settings inside WordPress to carry over (theme customizations, homepage settings, etc.). I know on some themes there can be a lot of drag-and-drop type editing that you lose when moving to a new theme. I already made that mistake once here and had to quickly change it back to the parent theme.
TL;DR
How can I create child themes and keep everything looking the same as parent themes that are already active?
- 2 There's no general answer. It depends entirely on what the original theme is. You should ask your theme author. – Jacob Peattie Commented Jan 4, 2019 at 13:39
- @JacobPeattie I was afraid of that. They're all different themes haha – Manly Commented Jan 4, 2019 at 13:50
1 Answer
Reset to default 1This is tough. I don't know of an automated way of doing this because every theme is different and who knows what changes you (or whoever) have already made to the original theme.
In my opinion, if you want to do this correctly and with the best results you are going to need to do this manually.
I would, setup a local install of wordpress, download the original unedited theme and install it on my local setup, then make your child theme. You could go through the theme options in the admin fairly easy just by opening your local site and the live site side by side and comparing. This will get all your settings aligned. You could also grab any styles from the customizer and put in your local site.
With the site settings aligned, now you need to make the same edits to your files but this time within your new child theme. Depending on what IDE or text editor you use, you can probably install a diff tool that will compare the differences between files. Similar to this online diff tool.
If you go slow and go section by section or page by page and compare the live version with your local install eventually you will have a matching child theme.
Not fast but it will get you there!
本文标签: How to create child theme of already active and customized theme
版权声明:本文标题:How to create child theme of already active and customized theme 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749044240a2307613.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论