Show author bio only on the first page of the author archives #4128
bogdan-ciocoiu
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I understand from Andrei that this theme is still maintained. I value amending themes in a sustainable and controlled way, and I am grateful for your work.
I needed to amend a deployment of this theme so that it only displays the author bio on the first page of the author archive. This means that if someone keeps navigating onto the second or third page of the author archive, the author bio disappears from the top of the newly loaded page(s).
The only way I could fix this was to replace the following code:
if ( is_author() ) {
With:
if ( is_archive($author) == true && is_author() == true && !is_paged()){
From here:
~/inc/views/page_header.php
However, since you are maintaining the theme, it's very likely that on your next update, you'll overwrite this change.
How best can I make this change permanent so it doesn't get overwritten on your next update?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions