I am using Generatepress Theme and adding site templates with Sitelibrary but issue is in homepage link which added as a navigation on footer bar showing malware with # tag
The theme and plugin are 100% clean. Is your security plugin reporting that code as the Malware? If so that’s just CSS, and nothing malicious is in that code.