I'm using Overleaf, and using the below code I want to modify the position of the page number to the footer. I looked online to find that the \usepackage{fancyhdr} is used usually, but in my case it is not working, any idea why?
[![\documentclass\[12pt\]{article}
\usepackage\[demo\]{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{XXXXXXXXXXX}
\rhead{}
\lfoot{XXXXXX\,|\, \thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\title{XXXXXXX}
\author{XXXXXX}
\date{Septembre 2013}
\begin{document}
\begin{center}
\centering
\includegraphics[scale=0.75]{logo.pdf}\[10ex] \textbf{XXXXXXX}\[10ex]
\textbf{Date:}
\end{center}
\newpage
\end{document}][1]][1]
\cfoot{}too... And often the first page of a document forces a different pagestyle, so you can use a\thispagestyle{fancy}or redefineplainif you use\maketitle. – Rmano Aug 26 '23 at 08:02