Archived topic
How to remove the default author info box on Archive page
12 replies · Started by Dan Nguyen on March 26, 2023
Hi
How do I remove the default author info at the top of the author archive page.
I want to use a custom author box, but it looks like it's causing duplication issue
I've added the info in the private area
Hi there,
Is the current custom author box added as a simple block element hook?
https://docs.generatepress.com/article/block-element-hook/
If so, can you change the Element type to a Page Hero:
https://docs.generatepress.com/article/block-element-overview/#element-type
Then select Before content container in the Quick Hook Select List:
https://docs.generatepress.com/article/block-element-page-hero/#quick-hook-select
Lastly, toggle on Disable title:
https://docs.generatepress.com/article/block-element-page-hero/#disable-title
Let me know :)
Yep, that works
How do I add a line separating the navbar and the main content?
Hi Dan,
Can you try adding this through Appearance > Customize > Additional CSS?:
header.site-header {
border-bottom: solid 2px #000000;
}
Hi,
I tried to do the same thing for Category page but it doesn't seem to work
I'm trying to add more top margin to make the title even with the sidebar widget
Try adding 30px top padding through Appearance > Customize > Layout > Container. If that doesn't work or it affects other pages, let us know. We'll need custom CSS if so.
Uhm, that's actually not how I want to do it.
I want to add the Category box the same way as the Author box above.
Is there a way to do this?
It's just H1 + the description
I've added the category here in the private area
Just checked.
Adding padding to container push everything down.
I just want to push down the main content blog to make it even with the sidebar
Try adding this through Appearance > Customize > Additional CSS:
body:is(.blog, .archive) header.entry-header {
margin-top: 30px
}
Will this affect author page? Author page & blog pages are fine, it's just the category page that is the issue.
I see. I could. Try this instead if you don't want it to affect those:
body:is(.archive):not(.author, .blog) header.page-header {
margin-top: 30px;
}
Yep that works.
Thanks
You're welcome, Dan!