# How to change color of the title and add a line on the title-page in beamer

I would like to change the the blue box behind the title on title page to be white and the color the title to be black.

Furthermore, I would like to add a straight orange horizontal line in between the title and the author. The ideal end result looks like this:

The original codes are below:

\documentclass{beamer}

\mode<presentation> {
\setbeamertemplate{footline}[page number]
}

\usepackage{graphicx}
\usepackage{booktabs}

\title[Short title]{Main Topic }
\author{John Smith}
\institute[UCLA]
{
University of California \\
\medskip
\textit{john@smith.com}
}
\date{\today}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\section{First Section}
\begin{frame}
\frametitle{Paragraphs of Text}
Sed
\end{frame}

\end{document}


Thank you very much!

• Your ideal result looks like the Metropolis theme. Why don't you use that? – TeXnician Sep 20 '18 at 6:19
• Thanks for pointing that out! But I really want everything else in Madrid and do not know what those set are and how to adjust those: 1. text font and type in the main text and frametitle; 2. Center title page contents and reverse order of school and date... – James H Sep 20 '18 at 6:45
• In addition, I noticed that the width of its text on each frame is also much wider for Madrid. – James H Sep 20 '18 at 6:55

You can redefine the title page as follows:

\documentclass{beamer}

\mode<presentation> {
\setbeamertemplate{footline}[page number]
}

\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{datetime}

\makeatletter
\setbeamertemplate{title page}
{
\vbox{}
\vfill
\begingroup
\centering
\begin{minipage}{.9\linewidth}
\usebeamerfont{title}\textsc{\inserttitle}\par
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\insertsubtitle\par}%
\fi%
\vspace{1.7em}
{\color{orange}\hrule}\vspace{1.7em}
\usebeamerfont{author}\insertauthor\par\vspace{.7em}
\usebeamerfont{date}\insertdate\par
\end{minipage}\par
\endgroup
\vfill
\thispagestyle{empty}
}
\makeatother

\title[Short title]{Main Topic}
\author{John Smith}
\institute[UCLA]
{
University of California \\
\medskip
\textit{john@smith.com}
}
\date{\shortmonthname\space\the\year}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\section{First Section}
\begin{frame}
\frametitle{Paragraphs of Text}
Sed
\end{frame}

\end{document}


Of course, you could change the font for the author and date to serifs, if desired:

\setbeamerfont{author}{family=\rmfamily}
\setbeamerfont{date}{family=\rmfamily}

• Thanks!! This works. Just to clarify, you are saying the serifs are the fonts used in Madrid? – James H Sep 20 '18 at 7:12
• No no, usually you should use sans serif fonts for presentations, as it is in the above example. The desired result you posted a picture of just shows a serif font for author and date, which is why I added that part. edit: Oh, I see, it's a serif font only for the author. – nox Sep 20 '18 at 7:15