- This topic has 9 replies, 3 voices, and was last updated 3 years, 4 months ago by
David.
-
AuthorPosts
-
December 13, 2022 at 11:22 pm #2461209
Jodie
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
December 13, 2022 at 11:52 pm #2461221Fernando Customer Support
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
December 14, 2022 at 9:10 pm #2462346Jodie
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
December 14, 2022 at 9:19 pm #2462350Fernando Customer Support
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.
December 15, 2022 at 11:48 pm #2463703Jodie
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
December 16, 2022 at 12:18 am #2463720Fernando Customer Support
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.
December 16, 2022 at 2:50 am #2463844Jodie
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!
December 16, 2022 at 4:10 am #2463946David
StaffCustomer SupportHi 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.December 16, 2022 at 5:59 pm #2464709Jodie
Hi David,
Great, that fixed it, thank you so much!
Cheers Jodie
December 17, 2022 at 6:02 am #2465014David
StaffCustomer SupportGlad to hear that!
-
AuthorPosts
- You must be logged in to reply to this topic.