Hi there @tech4life,
Thanks for getting in touch! I can help you on this…
First let me say you are right and the article needs an edit to make this clearer. I’ve reached out to the article author to highlight this issue, thanks for pointing this out!
The code in the article should go in the theme’s (or child theme’s) functions.php file. If you are using Avada, you shouldn’t edit the theme’s file directly but use a Child Theme to store customizations and keep them safe from being overwritten by future updates of the theme. You can read more about this here → Child Themes. So if you haven’t yet, create a child theme and past the code in it’s functions.php file.
Please let me know if the above helps,
Best,
Nico