dear! How can I put a different header template only for

Hi dear!
How can I put a different header template only for the homepage?

But I want it done from fuctions.php. used a child theme.

Tanks you.