# Conditional Variation of \headheight [duplicate]

I'm trying to use \ifthenelse from the ifthen package to vary the size of \headheight within a document. I'd like this to be larger for the first page and then smaller for each subsequent page.

I had thought I could accomplish this using code like the following in my preamble.

\ifthenelse{\thepage=1}


Unfortunately, that's not working for some reason. Below is some code that illustrates what I'm trying to do.

\documentclass{article}

%%%% Margins %%%%

\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{0in}

%%%% Packages %%%%

\usepackage[usenames,dvipsnames]{color}
\usepackage[lastpage,user]{zref}
\usepackage{fancyhdr}
\usepackage{ifthen}
\usepackage{parskip}
\usepackage[pdfstartview=Fit]{hyperref}

\pagestyle{fancy}
\definecolor{light-gray}{gray}{0.65}

{\textcolor{light-gray}{My Name} \\ [4ex] \vspace{36pt} \textcolor{light-gray}{Telephone Number}}
{\textcolor{light-gray}{My Name}}}

{\textcolor{light-gray}{Page \thepage \ of \zpageref{LastPage}} \\ [4ex] \vspace{36pt}
{\textcolor{light-gray}{Page \thepage \ of \zpageref{LastPage}}}}

{{\large\bfseries MY NAME, TITLE} \\
{}}

\cfoot{}

%%%% Main Document %%%%

\begin{document}

Some text

\newpage

More text

\end{document}


This code produces the desired output. The drawback though is that I need to manually specify where the first page break should occur and then reset the headheight using:

\newpage

Is there some way to automate this, using \ifthenelse or some other means? Setting things manually when the contents of the first page change doesn't require much effort, but I'd like to understand what's going wrong and how to do this properly.