get/take it into your head to do something - definition and synonyms

phrase informal
  1. to decide to do something, and be determined to do it even if other people do not like it
See also main entry: head