Archived topic
How to Customize Text in Author Page
3 replies · Started by Thomas on July 27, 2021
Hi,
I've added an Author Box after each blog post, using this method: https://generatepress.com/forums/topic/author-box-4/#post-975518
I used the edited script Nask provided, because otherwise the author bio is just one long line and it looks bad. With the CSS and Nask' script it looks fine.
The problem is with the "author archive", the author bio text is still one long line.
How do I get the text to break up in the same way, as in the Author Box?
I hope you can help. Thank you :-)
Hi there,
are you using the Block Editor ? If so, you can use a Block Element to build your own author box.
Video URL here showing how to:
Let me know.
Hi David,
Thanks. My problem is not so much the author box, I've added one, and I'm fine with it.
My problem is if I go to "MYURL.COM/author/AUTHORNAME", there is a page with the author description, etc., and it looks horrible. I want to edit this page, for example, change the way the text breaks up, so it is not just one long line.
I hope that makes sense.
Hi Thomas,
That part of the page isn't controlled by the theme.
But here's a suggestion:
You'll need a plugin that allows you to use rich text editor or HTML on Users > Edit user Biography info.
You can try adding this PHP snippet if you want to run HTML from the Biography info text field.
remove_filter('pre_user_description', 'wp_filter_kses');
add_filter( 'pre_user_description', 'wp_filter_post_kses' );
Allowing HTMLs to run on your biography info field will let you format the description to your preference.