Hello,
To make changes in theme file you need to use a child theme – https://codex.wordpress.org/Child_Themes
Regards