Thanks for the report. Were you able to find code in any of the theme files before reinstalling the theme? If so, can you send a copy of the file to samples [at] wordfence.com and include a link to this post?
If not, there may still be other files outside of the theme that were causing the issue -- some hacks hide themselves using cookies, time of day, or other methods, so the links may come back again or may still be displayed to other visitors.
The Divi theme would be scanned for known malicious patterns (which are pretty extensive), since the theme's code is not available on wordpress.org for comparison to the original files.
You may want to try additional Wordfence scan options, such as high sensitivity scanning, mentioned in our guide to cleaning hacked sites, here -- this could help find any other files that would let the attacker back in, if there are any:
Cleaning a hacked site with Wordfence
Remember also to change any passwords related to the site -- sometimes hacks like this can be cause by a hosting account or FTP password being compromised.