Hi!
All changes must be done only by means of a child theme.
The file must be copied and placed into the child theme directory and the changes be made there.
If you couldn’t succeed with having it in the navbox working maybe your theme isn’t updated.