I want to redeclare a function that I inherited from the parent theme.
When I do it in functions.php, I get a fatal error that redeclaration is not possible.
I did a workaround: creating a modified function name and copying all the template files, index.php etc. into the child theme's directory and rewriting the function calls. So now the new function is called.
This works but ignores any updates that the parent theme would have.
Is there a better solution to this?