# How can I add something on the top right of each slide of Beamer (Warsaw theme)

I have the following code of beamer presentation with warsaw theme, I added a logo in the right top, and i would like to add the institute and the subject in the same area, any help?

\documentclass[11pt]{beamer}
\usetheme{Warsaw}

\makeatletter
{%
\leavevmode%
\@tempdimb=2.4375ex%
\ifnum\beamer@subsectionmax<\beamer@sectionmax%
\multiply\@tempdimb by\beamer@sectionmax%
\else%
\multiply\@tempdimb by\beamer@subsectionmax%
\fi%
\ifdim\@tempdimb>0pt%
\end{beamercolorbox}%
\hfill
\end{beamercolorbox}%
\fi%
}
\makeatother

\begin{document}

\section{bla}
\begin{frame}
contenants
\end{frame}

\end{document}


\documentclass[11pt]{beamer}
\usetheme{Warsaw}

\makeatletter
{%
\leavevmode%
\@tempdimb=2.4375ex%
\ifnum\beamer@subsectionmax<\beamer@sectionmax%
\multiply\@tempdimb by\beamer@sectionmax%
\else%
\multiply\@tempdimb by\beamer@subsectionmax%
\fi%
\ifdim\@tempdimb>0pt%
\end{beamercolorbox}%
\yoursubject
\hfill
\insertshortinstitute
\hfill
\vfill
\end{beamercolorbox}%
\fi%
}
\makeatother

\renewcommand{\subject}[1]{%
\hypersetup{pdfsubject={#1}}%
\newcommand{\yoursubject}{#1}
}

\title{title}
\institute{institute}

\begin{document}

\section{bla}
\begin{frame}
contenants
\end{frame}

\end{document}


• Thank you, the subject is well defined in warsaw theme unfortunately this is not working with me Mar 14 '18 at 16:05
• @Fog_convergence Please have a look now Mar 14 '18 at 16:16
• Thank you very much for your time but it still not working Mar 14 '18 at 16:22
• @Fog_convergence "Not working" is not a very informative feedback. Mar 14 '18 at 16:27
• I am sorry, there is no errors but also there is nothing in that way ( top right) Mar 14 '18 at 16:30