 He studied at the University of Glasgow, going on to the University of Edinburgh where he studied under Thomas Chalmers.In 1834 Hanna was licensed to preach the Church of Scotland.He was ordained at East Kilbride, a parish near Glasgow, on 17 September 1835.