A British idiom meaning to hit someone on the side of the head, usually on the ear.
Mum: If you don't stop crying about McDonald's giving you a girl's toy instead of a boy's toy, I'm going to give you a thick ear.