talk through one's hat

talk through one's hat  {v. phr.},  {informal}
To say something without knowing or understanding the facts; talk foolishly or ignorantly.
John said that the earth is nearer the sun in summer, but the teacher said he was talking through his hat.
Categories: earth informal verb