Question: have visited or had visited?
Answer: “I visited the zoo yesterday” would be correct. With a specific time word like “yesterday,” we typically use the simple past. You can use “had visited” only if you are going on to say what you have done since then. “Had visited” implies a more remote past.