[Tex/LaTex] Using cfoot command

fancyhdrheader-footer

Here is my file

\documentclass[11pt]{article}

\usepackage{fancyhdr}

\cfoot{abc}

\begin{document}

ab

\end{document}

As I understand from this website, the cfoot command is supposed to produce a footer abc. But the file just has the page number 1 in the footer. What did I do wrong?

Best Answer

You need to add

\pagestyle{fancy}
\fancyhf{}% to clear existing header/footer if you don't want it
\renewcommand\headrulewidth{0pt}
\cfoot{abc}
Related Question