- This topic has 13 replies, 4 voices, and was last updated 3 years, 4 months ago by
David.
-
AuthorPosts
-
December 14, 2022 at 9:03 am #2461833
Fabien
Hi,
When creating a loop template, GP/GB add an extra
margin-bottomon the first container because of this code :.sidebar .widget, .page-header, .widget-area .main-navigation, .site-main > * { margin-bottom: 40px; }Is it an expected behavior ?
Thanks
December 14, 2022 at 1:07 pm #2462085Ying
StaffCustomer SupportHi Fabien,
You can wrap the query loop block with a container block, then set the container block’s margin-bottom to 0 to override the theme style.
December 15, 2022 at 1:46 am #2462482Fabien
Hi @Ying,
Actually, the
margin-bottomis applied to a container block. I’ve tried to force amargin-bottom : 0;but GP is overriding it.December 15, 2022 at 1:55 am #2462494Fernando Customer Support
Hi Fabien,
For reference, can you provide the link to where we can observe this issue?
You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
December 16, 2022 at 3:58 am #2463918Fabien
Hi @Fernando
Please check example in the private information field (
gb-container-6e3ad366)December 16, 2022 at 4:41 am #2463979David
StaffCustomer SupportHi there,
i do not see the Margin Bottom property on that Container Block. What happens if you set it to 1px instead of 0 ?
December 16, 2022 at 4:54 am #2463994Fabien
Hi @David,
I’ve just applied the
margin-bottom : 0but you can see it’s overwritten by GP rules.December 16, 2022 at 5:14 am #2464017David
StaffCustomer SupportAh its because the themes dynamic CSS is loading after the GB styles are.
For now can you treat it with some CSS ?Ill make a note of this to see how we can improve on it in the future.
December 16, 2022 at 5:32 am #2464047Fabien
Yes I’ll fix it using some CSS. My main goal was to flag the issue so it can be solved on futures updates.
I’ve also notice a “bug / weird behavior” when creating a block hero template for an archive page using a column layout. Should I open a new thread ?
December 16, 2022 at 5:37 am #2464054David
StaffCustomer SupportWe may as well keep it in this one.
Where can i see the issue ?December 16, 2022 at 6:19 am #2464102Fabien
If you create an Element > Block > Hero > Before Content Container, when using a multi column layout on an archive page, the content of the element goes out of the div.
Now if you switch to a single column layout, the issue “disappears”.
December 16, 2022 at 6:34 am #2464118David
StaffCustomer SupportOk, set the hooks priority to
9this will move it before thegenerate-columns-containerDecember 16, 2022 at 7:01 am #2464168Fabien
Good call, thanks @David
December 16, 2022 at 7:04 am #2464171David
StaffCustomer SupportYou’re welcome.
Thanks for the feedback on the other issue! -
AuthorPosts
- You must be logged in to reply to this topic.