# Placing Image (Logo) over frametitle in Beamer (Metropolis Template Theme), it appears underneath

I am using the Metropolis theme, when I attempt to use logo{} or tikz or even manually place the image, it appears underneath the "banner" that contains frame titles.

I cannot figure out how to bring the image to front (overlay it) on top of the frame title.

• Please provide us with a minimal working example. – marmot Feb 12 at 15:41
• I woud like to but can't figure out what you might want, since its a large theme. – Alexis Drakopoulos Feb 12 at 15:43
• Please provide us with a minimal compilable example that illustrates the problem. I do not see why the size of the theme prevents you doing that. – marmot Feb 12 at 15:54

Based on https://tex.stackexchange.com/a/444958/36296 you could redefine the frametitle like in the following example:

\documentclass{beamer}

\usetheme{metropolis}

\makeatletter
\setbeamertemplate{frametitle}{%
\nointerlineskip%
\begin{beamercolorbox}[%
wd=\paperwidth,%
sep=0pt,%
]{frametitle}%
\metropolis@frametitlestrut@start%
\insertframetitle%
\nolinebreak%
\metropolis@frametitlestrut@end%
\hfill
\raisebox{-0.6ex}{\includegraphics[height=3ex,keepaspectratio]{example-image-duck}}
\end{beamercolorbox}%
}
\makeatother

\begin{document}

\begin{frame}{My frame title}
\begin{block}{Some itemize}
\begin{itemize}
\item Item 2
\end{itemize}
\end{block}
\begin{block}{Some maths}
$\sum_{n=1}^{\infty}\frac{1}{n^2}=\frac{\pi^2}{6}=\zeta(2)$
\end{block}
\end{frame}

\end{document}