最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Add code to Functions.php

programmeradmin1浏览0评论

I want to know if I add some short code in functions.php in my theme and solve my problem, What will happen if I update my Theme ?? is my short code delete after update ?? will i have any problem with updating my theme after adding the code to functions.php ?

I want to know if I add some short code in functions.php in my theme and solve my problem, What will happen if I update my Theme ?? is my short code delete after update ?? will i have any problem with updating my theme after adding the code to functions.php ?

Share Improve this question asked May 1, 2019 at 20:57 Pasargad PasargadPasargad Pasargad 1 1
  • 1 You should provide some more concrete examples of what you're dealing with and what your question is. – phatskat Commented May 2, 2019 at 3:10
Add a comment  | 

1 Answer 1

Reset to default 2

Yes.

It's best practice to use a child theme and make your modifications there rather than edit the parent theme directly. This will allow you to to make changes without fear of overwriting your customizations.

From the Codex:

A child theme inherits the look and feel of the parent theme and all of its functions, but can be used to make modifications to any part of the theme. In this way, customizations are kept separate from the parent theme’s files. Using a child theme lets you upgrade the parent theme without affecting the customizations you’ve made to your site.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论