in the MWE code below:
How do I go about removing the section number just from the
\rightmarkin the headers,Remove "CHAPTER X" from the footers, and
Shift the main body text down so that it does not overlap with the header images.
Remove the "0" from the un-numbered chapters (like the List of Figures, Contents, etc.).
Here is the code that was modified as per solution given here:
\documentclass[11pt]{book}
\usepackage[a4paper, left=1.5cm, right=1.5cm, bindingoffset=1.5cm]{geometry}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{fourier}
\usepackage{etoolbox}
\patchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{fancy}}{}{}
\definecolor{gmitblue}{RGB}{93,138,168}
\definecolor{line}{RGB}{70,160,216}
\usetikzlibrary{calc}
\renewcommand{\headrulewidth}{0pt}
\newcommand\hdheight{1in}
\newcommand\ftheight{.5in}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[O]{%
\begin{tikzpicture}[overlay, remember picture]%
\fill[gmitblue] (current page.north west) rectangle ($(current page.north east)+(0,-\hdheight)$);
\draw[line] ([yshift=-\hdheight]current page.north west) -- ([yshift=-\hdheight]current page.north east);
\node[anchor=south west, text width=1cm, text=white, font=\fontsize{2cm}{1.5cm}\selectfont] (oddpagenum) at ($(current page.north west)+(.5\hdheight,-\hdheight)$) {\textbf{\thechapter}};
\node[anchor=south west, text width=11.5cm, text=white, font=\fontsize{.5cm}{1.5cm}\selectfont] (chapter) at (oddpagenum.south east) {\quad\textbf{TOPIC TO BE DISCUSSED}};
\node[anchor=north east, minimum size=1in, inner xsep=5mm] at (current page.north east) {\includegraphics[scale=.4]{example-image-a}};
% \node[anchor=south west] at (chapter.south east) {\leftmark};
\end{tikzpicture}
}
\fancyhead[E]{%
\begin{tikzpicture}[overlay, remember picture]%
\fill[gmitblue] (current page.north west) rectangle ($(current page.north east)+(0,-\hdheight)$);
\draw[line] ([yshift=-\hdheight]current page.north west) -- ([yshift=-\hdheight]current page.north east);
\node[align=right, anchor=south east, text width=7cm, text=white, font=\fontsize{.7cm}{1.5cm}\selectfont] (evenpagenum) at ($(current page.north east)+(-.5\hdheight,-\hdheight)$) {\textbf{\rightmark}};
% \node[align=right, anchor=south east, text width=1.5cm, text=white, font=\fontsize{.5cm}{5.5cm}\selectfont] (leftmark) at (evenpagenum.south west) {\rightmark};
\node[anchor=north west, minimum size=1in, inner xsep=5mm] at (current page.north west) {\includegraphics[scale=.4]{example-image-b}};
% \node[align=right, anchor=south east] at (chapter.south west) {\leftmark};
\end{tikzpicture}
}
\fancyfoot[CE]{
\begin{tikzpicture}[overlay, remember picture]%
\fill[gmitblue] (current page.south west) rectangle ($(current page.south east)+(0,.5in)$);
\node[anchor=south west, text=white, font=\Large, minimum size=.5in] at (current page.south west) {\textbf{\thepage}};
\node[anchor=south, text=white, font=\large, minimum size=.5in] at (current page.south) {\leftmark};
\node[anchor=south east, text=white, font=\large, minimum size=.5in, inner xsep=5mm] at (current page.south east) {\today};
\end{tikzpicture}
}
\fancyfoot[CO]{
\begin{tikzpicture}[overlay, remember picture]%
\fill[gmitblue] (current page.south west) rectangle ($(current page.south east)+(0,.5in)$);
\node[anchor=south west, text=white, font=\large, minimum size=.5in, inner xsep=5mm] at (current page.south west) {\today};
\node[anchor=south, text=white, font=\large, minimum size=.5in] at (current page.south) {\leftmark};
\node[anchor=south east, text=white, font=\Large, minimum size=.5in] at (current page.south east) {\textbf{\thepage}};
\end{tikzpicture}
}
\setlength{\headheight}{12pt}
\title{A reasonably long title}
\date{\today}
\author{The author}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{}{0pt}{\Huge}
\titlespacing*{\chapter} {0pt}{20pt}{40pt}
\begin{document}
\maketitle
\tableofcontents
\listoffigures
\chapter{Problem 1}
\section{Problem 1}
\lipsum[1]
\section{Solution 1}
\lipsum
\lipsum
\chapter{Problem 2}
\section{Problem 2}
\lipsum[1]
\section{Solution 2}
\lipsum[1-5]
\appendix
\chapter{Appendix A}
\lipsum[1-5]
\end{document}
