If headers and footers are still visible, check individual slides for manually added text boxes, or ensure that the correct Slide Master has been edited for the applied template.