Thorntons has said that Hannah Legg, the head of the UK chocolate maker's online arm, has replaced Peter Wright as the company's marketing director.