Weaning is HELL

I need to wean my 1 1/2 year old bc im having a procedure done and i can't be breastfeeding. I've tried everything and nothing is working. Nap and bedtime are hell. Please help with tips or suggestions that helped. I need sleep and a solution. Thank you