I admit, that I'm a beginner, so I'm asking your help for headers on title page. I would like to put an image as header on the title page and for the other pages an another header and footer. For now the header and footer that I set it works, but I don't know how to do for the title page. How can I do it? Here's the code
\documentclass{article}
\usepackage[italian]{babel}
\usepackage[paper=a4paper, top=3cm, bottom=2.5cm, left=2.5cm, right=2cm]{geometry}
\usepackage{graphicx}
\usepackage{float}
\usepackage{afterpage}
\usepackage{fancyhdr}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage{enumitem}
\usepackage{wrapfig}
\usepackage{lastpage}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyhead[L]{\includegraphics[width=2cm]{logo.png}}
\fancyfoot[R]{Page \thepage~of \pageref{LastPage}}
\fancyfoot[L]{John Doe}
\fancyfoot[C]{E1A}
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\footrulewidth}{1pt}
\newcommand\blankpage{
\null
\thispagestyle{empty}
\addtocounter{page}{-1}
\newpage
}
\begin{document}
\begin{titlepage}
\fancyhead{\lhead{\includegraphics[width=2cm]{logo.png}}}
\begin{center}
\vspace*{3cm}
\rule{\textwidth}{1.6pt}\vspace*{-\baselineskip}\vspace*{3.5pt}
\rule{\textwidth}{0.4pt}
\vspace{2\baselineskip}
{\Huge Electric and hybrid,\\the future\\}
\vspace{2\baselineskip}
\rule{\textwidth}{0.4pt}\vspace*{-\baselineskip}\vspace{3.5pt}
\rule{\textwidth}{1.6pt}
\vspace{2\baselineskip}
\vspace{2\baselineskip}
{\LARGE John Doe \\}
\vspace{0.5\baselineskip}
\end{center}
\begin{large}
\end{titlepage}
\end{document}
hyperref
too early. Put it at the end of the preamblefancyhdr
for this.