Free attorney if can't afford for custody case?

If I cannot afford an attorney. Will the court appoint a free one for me in a custody case?

No, the court will only appoint attorneys in criminal matters.