dongtan5811 2013-11-20 11:20
浏览 24
已采纳

在儿童主题创作期间,我必须将孩子放在哪个文件中?

I had created a child theme. So i want to know some basic question about child theme.

1) i had create a child theme.If i am updating the theme, What should be happened ? I mean all customization which i had does manually is remain there in parent theme after updating the Parent theme.

2) After creating child theme i have to place all file of the parent theme in which i had made the customization in child theme or not ?

3) Suppose in child theme there are three files functions.php style.css screenshot

Now if i am activating this child theme is there any difference of look and feel of activating parent theme and child theme. i am asking these because i am facing these issues.

and i want to make sure for testing my child theme.

  • 写回答

1条回答 默认 最新

  • duandange7480 2013-11-20 12:42
    关注
    1. if you change your child theme, the customization of the parent theme remains there in wordpress cause the parent theme is the same
    2. in a child theme wordpress search the file first in the child theme folder, then, if not found, goes to the parent theme (is the same to all files, except functions.php that not overrides the parent theme functions cause is loaded in addition)
    3. if you active a child theme takes all the functions of the base themes but with the files in the child theme is like and object that extends another

    More info in: Child themes Wordpress Codex

    TIP: using template partials could be useful to work with child themes

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?