Hello,
Try to use Insert Headers and Footers plugin – https://wordpress.org/plugins/insert-headers-and-footers/
If you made changes in files of the parent theme and can’t revert them, theme archive without additional customization can be downloaded in ThemeForest.
Regards