WordPress Child Theme - General Understanding

前端 未结 2 1421
有刺的猬
有刺的猬 2021-01-22 15:00

I am trying to understand how to use a Child Theme in wordpress. I am afraid that something will go wrong in the process of developpment because I haven\'t completely understood

2条回答
  •  心在旅途
    2021-01-22 15:25

    Your child theme is not a blank canvas. It inherits style.css, functions.php and all the post/page templates from the parent theme. The style.css file of your child theme will load after that of the parent theme, thus enabling you to add more CSS rules. The functions.php file of your child theme will load before the parent's functions.php file.

    The child also inherits all the templates from the parent. However, if a template exists in the parent and you create it in the child the child theme's template will completely override the parent's template. For more information on parent-child theme relationship I highly recommend that you check the official child themes documentation.

提交回复
热议问题