Beamer Theme: Getting rid of the two boxes in the header

beamerthemes

In the CambridgeUS theme in Beamer (and I guess also in other themes), there are two boxes in the header appearing on each slide: enter image description here

Personally, I'd like to remove them, as they do not contain any necessary information, how can this be done?

Best Answer

Here is proposal.

\documentclass{beamer}
\usetheme{CambridgeUS}
% https://tex.stackexchange.com/questions/33146
% In my case, first hit when googeling for "CambridgeUS beamer header remove" :).
\setbeamertemplate{headline}{} % < --- ---

\begin{document}
\begin{frame}{Frame Title}
    Content.
\end{frame}
\end{document}

enter image description here


Important: When using sections etc., the headline has a purpose, see:

\documentclass{beamer}
\usetheme{CambridgeUS}

\begin{document}
\section{Section 1}
\subsection{Subsection 1}
\begin{frame}{Frame Title}
    Content.
\end{frame}

\section{Section 2}
\begin{frame}{Frame Title}
    Content.
\end{frame}
\end{document}

enter image description here