# Change the contents of footline in a beamer presentation

For my presentation, I am using Madrid theme; however, I'd like to change the contents of the footline. Currently, the footline shows, "short author" in the left, "short title" in the middle, and "date and framenumber/total number of frames" in the right side. I need to change these contents as follows:

Left side: Section name

Center: Subsection

Right: The same which is Date and frame number/total number of frames

I really appreciate if someone help me.

• Please use the search term [beamer] footline madrid for a lot of questions similar to this one on TeX.SE search bar. – percusse Nov 17 '12 at 0:13

Madrid uses the infolines outer theme, so you need to redefine the footline template as implemented for this outer theme; here are the necessary changes:

\documentclass{beamer}

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

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

\begin{document}

\section{Test Section One}
\subsection{Test Subsection One One}
\begin{frame}
test
\end{frame}
\subsection{Test Subsection One Two}
\begin{frame}
test
\end{frame}

\end{document}