Is it possible to edit a theme in WordPress without affecting its structure, and add more functionality to the theme of a third party?
Is it possible to edit a theme in WordPress without affecting its structure, and add more functionality to the theme of a third party?
You can edit the yes theme without changing the structure and functionality, but it is not ideal because all edits will be overwritten in the next theme update.
The best option to edit themes is the one indicated by WordPress: create a theme son . Files that exist in the child theme override the parent theme, and WordPress uses the parent theme for those that do not exist in the child theme.
The only exception is the functions.php
file that is read first in the child theme and then in the parent theme. If the parent theme is well written, you can override any functinos.php function only by redeclaring it in the child theme.
To make the child theme you can use the guide you have in the codex or use a plugin, looking for in the repository for "child theme".
Yes it is possible.
If after searching a lot for a theme you do not find the functionality you need, you will need to edit the WordPress theme that you purchase so that it can perform such functionality.
Template Editing Reference: