Talk through one’s hat
Talk twaddle or nonsense but with an air of implied knowledge, American colloquial expression that dates from the late 19th century.