Put kitty in a room with her litterbox, food and water. Do not let her out for 24 to 48 hours. She'll get the idea.

That's what I had to do when Mollie Rose was a baby cuz she was born in a barn and the world was her litterbox.