Frames around hyperlinks in apa7 documents

apa7hyperlinkhyperref

I noticed that when creating documents in the apa7 document style, the resulting PDF will have colored boxes around the hyperlinks (with colors apparently varying depending on what it's linked to: red for tables, turquoise for web addresses, green for citations).

I tried adding the line \usepackage[hidelinks]{hyperref}, but it only returns:

Option clash for package hyperref.

How can I remove the frames?

Least working example:

\documentclass[jou]{apa7}

\usepackage[american]{babel}
\usepackage[style=apa,sortcites=true,sorting=nyt,backend=biber]{biblatex}
\addbibresource{bibliography.bib}
%\usepackage[hidelinks]{hyperref} % Tried adding this line, but renders an error.

\title{Least working example using the \textsf{apa7} Package}

\begin{document}
\maketitle
We begin with \textcite{Shotton1989}.  We can also cite this work in
parenthesis, like this: \parencite{Shotton1989}.

Table \ref{tab:ComplexTable} contains some sample data.  Our
statistical prowess in analyzing these data is unmatched.

\begin{table}[htbp]
    \caption{A Complex Table}
    \label{tab:ComplexTable}
    \begin{tabular}{@{}lrrr@{}}         \toprule
    Distribution type  & \multicolumn{2}{l}{Percentage of} & Total number 
    \end{tabular}
\end{table}

\printbibliography
\end{document}
% Citation
@BOOK{Shotton1989,
  author = {Shotton, Margaret A.},
  title = {Computer addiction? {A} study of computer dependency},
  publisher = {Taylor \& Francis},
  year = {1989},
  location = {London, England}
}

Best Answer

Use

\PassOptionsToPackage{hidelinks}{hyperref}
\documentclass[jou]{apa7}

\usepackage[american]{babel}
\usepackage[style=apa,sortcites=true,sorting=nyt,backend=biber]{biblatex}
\addbibresource{bibliography.bib}
%\usepackage[hidelinks]{hyperref} % 
...
Related Question