A.P.
An adult shampoo for oily hair (need to be carful of the eyes) should work in a couple of washes for the hair. If that does not work Dawn dishwashing liquid. For the carpet spot test first but try a degreaser like 409 or Arm and Hammer natural cleaners degreaser I know it's worked on clothes for me. Spot Shot carpet clean seems to work on most anything for me, but I have not had diaper cream on my carpet YET (oh but my day is comming LOL).