Thanks for contacting us.
The code shared by Denzel should work for you, try it out.
You can update the theme without losing any customized codes by using the give instruction in the articles below:
I hope that helps.
Please let me know if there’s any other problem, I’m glad to help.