To kill the fungus, you must treat ringworm on the scalp with medications taken by mouth. Treatment may take up to 12 weeks. Using an antifungal shampoo may help reduce the risk of spreading the infection to family members and classmates. Anyone who has ringworm should avoid sharing personal items like combs, hats, and towels.