admin管理员组文章数量:1420166
Im looking to edit a parent theme, and not just the functions and style files. I find that child themes don’t have the flexibility i want. How can i edit the parent theme without all the risk and the possibility of an update overriding all my changes?
Im looking to edit a parent theme, and not just the functions and style files. I find that child themes don’t have the flexibility i want. How can i edit the parent theme without all the risk and the possibility of an update overriding all my changes?
Share Improve this question asked Jul 13, 2019 at 19:53 Luke AnglinLuke Anglin 51 bronze badge 1- Could you ellaborate on how child themes don't have the flexibility you want, please? In which way you find that they are lacking flexibility? – Antti Koskinen Commented Jul 13, 2019 at 20:46
2 Answers
Reset to default 0In short: Not easily.
First - just to say it: with child themes you can hook into functions, filter values, change templates or even exchange javascript files. This is usually enough.
Edit based on the comments: If the theme is coded with best practices and checks for child theme directory you may just copy the template from the parent theme to the child theme and do your changes there.
If child theme is not enough you have two possibilities:
Write down your changes manually or backup the files. Once you update the theme reproduce the steps.
Connect to your server with ssh. Install a git in the themes folder (or root if you need to). Check in your changes. Whenever you update the theme git merge the changes into the updated theme. Git is nothing for beginners. Make sure to backup your complete installation before experimenting with git.
There's no other solution imho.
Just rename the the theme folder. This essentially makes it a new theme, so it will no longer receive updates for the original theme, but you can safely make changes to it.
本文标签: Changing a parent theme safely
版权声明:本文标题:Changing a parent theme safely 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745324506a2653527.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论