Sometimes, the solution can be as simple as
adding an additional litter box, changing the location or type of litter box, or changing the type of litter you're using.
After a vet has ruled out medical causes, some tricks to try include cleaning the
box (es) as often as possible,
adding additional boxes, and using plain cat
litter.