# Page numbering at bottom of page

I am writing my thesis and I am using document class thesis. I want the page numbering appearing at bottom of the pages and centered.

\documentclass[12pt,a4paper, oneside, bold]{thesis}
\usepackage[left=3cm,right=2cm,top=3cm,bottom=2cm]{geometry}
\begin{document}
My text....
\end{document}


I tried writing something like that:

\documentclass[12pt,a4paper, oneside, bold]{thesis}
\usepackage[left=3cm,right=2cm,top=3cm,bottom=2cm]{geometry}
\usepackage{fancyhdr}
\fancyhf{}
\cfoot{\thepage}

\begin{document}
My text
\end{document}


But nothing is working. Any suggestions please.

• Welcome to TeX.SX! You can have a look on our starter guide to familiarize yourself further with our format. – Marco Daniel Jun 3 '13 at 10:24
• In your second example you have to call \pagestyle{fancy} to activate the page style provided by fancyhdr. – Marco Daniel Jun 3 '13 at 10:25

The package fancyhdr allows you the modification of the header. However the package fancyhdr doesn't overwrite the default styles instead it defines a new one named fancy. So you have to use \pagestyle{fancy}:
\documentclass[12pt,a4paper, oneside, bold]{thesis}