You just have to add \leftmark and/or \rightmark somewhere in your pagestyle definition. However, you also have to change the page geometry, otherwise there is not enough room for such a large head (see the warning of fancyhdr).
Example:
\documentclass[14pt]{extbook}
\usepackage[paperwidth=8.5in,paperheight=11in,headheight=74pt,top=1.5in]{geometry}% changed
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}% only needed for outdated LaTeX releases
\usepackage{xcolor}
\usepackage{lipsum}
\usepackage{fancyhdr}
\fancyhf{}
\fancyhead[LE,RO]{{\ooalign{%
\color{black!70!white}% background box color
\rule[0.04in]{0.8in}{0.9in}% background box raise, width, height
\cr
\hfil\strut\raisebox{0.25in}{% number raise
\fontfamily{ugq}\selectfont\bfseries\color{white}% number color
\large% number fontsize
\thepage
\kern0.1em% distance number-bar
\kern0.15em% distance bar-totalnumber
\small% totalnumber fontsize
}\hfil
}}}
\fancyheadoffset[LE,RO]{1.2in}% protrusion
\fancyhead[RE]{\leftmark}% added
\fancyhead[LO]{\rightmark}% added
\pagestyle{fancy}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{1pt}
\begin{document}
\chapter{Title}
\section{Title 1}
\begin{quote}
\lipsum
\end{quote}
\section{Title 2}
\begin{quote}
\lipsum
\end{quote}
\end{document}
Ijon Tichy wrote:You just have to add \leftmark and/or \rightmark somewhere in your pagestyle definition. However, you also have to change the page geometry, otherwise there is not enough room for such a large head (see the warning of fancyhdr).
Example:
\documentclass[14pt]{extbook}
\usepackage[paperwidth=8.5in,paperheight=11in,headheight=74pt,top=1.5in]{geometry}% changed
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}% only needed for outdated LaTeX releases
\usepackage{xcolor}
\usepackage{lipsum}
\usepackage{fancyhdr}
\fancyhf{}
\fancyhead[LE,RO]{{\ooalign{%
\color{black!70!white}% background box color
\rule[0.04in]{0.8in}{0.9in}% background box raise, width, height
\cr
\hfil\strut\raisebox{0.25in}{% number raise
\fontfamily{ugq}\selectfont\bfseries\color{white}% number color
\large% number fontsize
\thepage
\kern0.1em% distance number-bar
\kern0.15em% distance bar-totalnumber
\small% totalnumber fontsize
}\hfil
}}}
\fancyheadoffset[LE,RO]{1.2in}% protrusion
\fancyhead[RE]{\leftmark}% added
\fancyhead[LO]{\rightmark}% added
\pagestyle{fancy}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{1pt}
\begin{document}
\chapter{Title}
\section{Title 1}
\begin{quote}
\lipsum
\end{quote}
\section{Title 2}
\begin{quote}
\lipsum
\end{quote}
\end{document}