admin管理员组文章数量:1321047
I have a parent theme with 2 widget areas, header, sidebar, and footer, the header and the footer have 2 simple text widgets in them.
When I switch to the child theme which consists of just style.css and functions.php to enqueue the stylesheet, both the widgets are removed, they are also not in the inactive widgets area.
Is there a method for ensuring that the widgets are not lost when the themes are switched?
I have a parent theme with 2 widget areas, header, sidebar, and footer, the header and the footer have 2 simple text widgets in them.
When I switch to the child theme which consists of just style.css and functions.php to enqueue the stylesheet, both the widgets are removed, they are also not in the inactive widgets area.
Is there a method for ensuring that the widgets are not lost when the themes are switched?
Share Improve this question asked Dec 29, 2016 at 16:29 NazNaz 2114 silver badges13 bronze badges1 Answer
Reset to default 0I think you should check your parent theme functions.php for code which should load widgets and copy & paste such code to child theme functions.php file. It should work.
本文标签: Prevent widgets from disappearing when swtiching from parent to child theme
版权声明:本文标题:Prevent widgets from disappearing when swtiching from parent to child theme 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742093736a2420418.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论