[Tex/LaTex] Removing thesis title and author name from abstract

abstractauthortemplates

I am using this template:
https://www.overleaf.com/latex/templates/template-for-a-masters-slash-doctoral-thesis/mkzrzktcbzfl

I have already turned on consistentlayout, but it keeps displaying author name and thesis title in the abstract. How do I fix this?

enter image description here

Best Answer

Add these lines to your header (I put them right before the "Margin settings" comment):

\DeclareDocumentEnvironment{abstract}{ O{} }{%
    \addchap*{\abstractname}%
    \bigskip\noindent\ignorespaces
}%
{}

For comparison, the code executed by the template when the option consistentlayout is set (from here):

\DeclareDocumentEnvironment{abstract}{ O{} }{%
    \addchap*{\abstractname}%
    {\chapteralign\normalsize\abstractauthorfont \authorname \par} % Author name
    \vspace{\baselineskip}
    {\chapteralign\parbox{.7\linewidth}{\chapteralign\normalsize\itshape\abstracttitlefont\@title}\par}% Thesis title
    \bigskip\noindent\ignorespaces
}%
{}

So I just removed the lines that insert the author name and thesis title into the abstract page.