How to get rid of Fungus Gnats

I have a bad infestation of these and have tried numerous things. I’ve tried Dianthous Earth to solutions that you pour directly into soil. Is there anything that you can recommend for this?? It’s really creating havoc on my plants!!