I am a PHP developer but I am new to WordPress so there may be simple things I don't know how to do.
I made a change on a theme file to change the behavior of the theme. Only changed 6 words and everything inside of the same function.
You can see the original and the modified file comparission here: https://www.diffnow.com/report/5321s
So, I know this changes can be lost on a theme update... and I am not very attracted by this idea... so, I made a child theme, copied the file and made the changes there. Everything is ok, it works very nice but...
I wonder if a theme update where they modify a line of the same file but in another function may affect my site. And if so, is there anything I can do?
I don't know, maybe I can replace the modified function from the functions.php file instead of a child theme.
If that is possible, how can I do it?