Archived topic
Author About Boxes On Archive Pages
9 replies · Started by Jodie on December 13, 2022
Hi,
I have two questions about creating author boxes for author archive pages.
I've got a columns block, but the left side is bleeding off the container width. How do I fix this?
Also, how do I ensure the GenerateBlocks element I've created only applies to one author, and not all?
Thanks!
Cheers Jodie
Hi Jodie,
1. My suggestion would be to use a GB Image Block instead of a WP Image Block. Through this, you can set the width to a specific % value. This prevents overflowing. Example: https://share.getcloudapp.com/NQu4rp7J
Reference: https://share.getcloudapp.com/NQu4rp7J
2. You'll need a Snippet for it. This article discusses how: https://docs.generatepress.com/article/generate_element_display/#display-an-element-to-a-specific-author
Hi Fernando,
Thanks for that.
I've changed it to an GB image block and set the width to 90% but the container is still bleeding off to the side.
Any ideas on what I could try? Thanks!
Cheers Jodie
On what view is it "bleeding out"? I tried checking it from my end, and I can't replicate the issue. Can you try clearing the cache of your browser first? Or, try using a different browser to test.
Hi Fernando,
I'll make a screenshot to show you what I mean. The edges of the author box aren't in line with the posts in the archive page.
Can you tell me how I might fix this?
Thanks for your help!
Cheers Jodie
I see. Thank you for clarifying. Can you try adding a 15px left margin to the Container with a Magenta Background? Let us know how it goes.
Let us know how it goes.
Hi Fernando,
Great, that worked! Thank you for your help.
I seem to have an extra author box below the Element I've created.
Any ideas on how to remove it? Thanks!
Hi there,
the Block Element you created to add the Author box, is the Element Type a Page Hero - if it is then in those settings there is a Disable Title option, which should the theme author title and description.
Hi David,
Great, that fixed it, thank you so much!
Cheers Jodie
Glad to hear that!