Articles on: Knowledgebase

Why shouldn't you edit the WordPress theme or plugin code?

Why shouldn't you edit the WordPress theme or plugin code?

Usually, all WordPress themes and plugins have regular updates. Sometimes with minor bug fixes and some time with the addition of some features. A big part of the updates is security releases as well. Hence, not updating the themes and plugins might cease to function them and or even compromise the site, leaving it open to hacker attacks.

So, What happens when we edit the theme or plugin code?

Once the theme or plugins are updated, the changes made will no longer have their existence.
So, the best way to make changes to the theme files is by using child themes.

More about Child theme:
https://docs.zakratheme.com/en/article/how-to-add-custom-code-to-the-theme-using-child-theme-1ml5yot/

Updated on: 24/08/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!