I have a search form on my site to find specific articles, the search functions are included in the theme folder
theme/widgets/search.php
the search.php file is included in two files where the actual form is.
For one particular users I need to make a change to a single line in the search.php file in a function, I have tried using a child theme and adding the amended file in the root, including it from the the child function file causes lots of 'function already declared' errors, presumably because the functions are declared in the parent search.php file and now being re-declared in the child search.php file.
How can I get this updated file or function to override the the file/function in the parent theme.