How to modify outer theme infolines to include the title and section in the header beamer?

I am using the CambridgeUS beamer theme for a presentation and would like to modify the header to include the title of the presentation on the left and the section on the right, as I do not have many subsections. A modification to the infolines command seemed like the way to go, but this is apparently not possible without modifying the sty file itself. Does anyone have a fix?

-

You can set the headline template:

\documentclass{beamer}
\usetheme{CambridgeUS}

{
\leavevmode%
\hbox{%
\end{beamercolorbox}%
\end{beamercolorbox}}%
\vskip0pt%
}

\title{The Title}
\author{The Author}

\begin{document}

\section{Test Section One}
\begin{frame}
test
\end{frame}

\section{Test Section Two}
\begin{frame}
test
\end{frame}

\end{document}


Notice that infolines by default inserts the title of the presentation in the footline template, so you'll also need to redefine this template to avoid duplicate information; here's one possible redefinition:

\documentclass{beamer}
\usetheme{CambridgeUS}

{
\leavevmode%
\hbox{%
\end{beamercolorbox}%
\end{beamercolorbox}}%
\vskip0pt%
}

\makeatletter
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\end{beamercolorbox}%
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother

\title{The Title}
\author{The Author}

\begin{document}

\section{Test Section One}
\begin{frame}
test
\end{frame}

\section{Test Section Two}
\begin{frame}
test
\end{frame}

\end{document}


And the result:

-