When my (now) oldest cat, Mollie Rose was a kitten she also started pooping elsewhere, even though she was still peeing in the box. My vet told me to isolate her in one room with her food, water and litterbox for 24 to 48 hours. It did the trick! She never pooped anywhere but in the box after that.

That's about all the advice I can offer. Good luck!