- This topic has 3 replies, 2 voices, and was last updated 5 months, 1 week ago by
David.
-
AuthorPosts
-
March 7, 2022 at 3:12 am #2145136
James
Hi – hope you can help with this.
I’ve found another problematic area with using both GeneratePress and Beaver Themer on a WooCommerce site.
If you go to this page https://gv.perfectlydigital.dev/product/_test-product-1/ and click ‘Add to basket’ then the View Cart message is shoehorned in before the product column. When I open up dev tools to inspect I see this from the GP stylesheet:
.site-content {
display: flex;
}Disabling that, or even just adding ‘flex-wrap: wrap;’ resolves it, but I don’t know if this is the best solution. Obvioulsy I don’t want to edit the GP stylesheet otherwise I lose that when you next release an update. So what’s the best solution?
FYI, I had a previous issue with Themer and GP as detailed in this ticket (https://generatepress.com/forums/topic/gp-theme-corrupts-layout-of-woocommerce-shop-page/#post-2018011). So I’ve already got this snippet in place:
.fl-builder-content {
flex: 1 0 100%;
}Do I need to amend that, or is it something new?
Thanks
March 7, 2022 at 5:38 am #2145265David
StaffCustomer SupportHi there,
Well thats a pain – maybe as per your last post its better to make the site-content container a block.
You could use this, so presumably when BB Theme builder is at play its going to strap one of the fl-theme-* classes to the body:body[class*='fl-theme-builder'] .site-content { display: block; }
It works, but not sure if this will avoid breaking any non BB built pages….
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 7, 2022 at 6:39 am #2145326James
Thanks David, that’s helpful. Two follow up questions if I may.
Presumably with the css you posted above I now no longer need the snippet from the previous post:
.fl-builder-content {
flex: 1 0 100%;
}What do you mean by making the site-content container a block? I’m actually pretty new to GP – only using it for the first time on this site due to WooCommerce functionality. So I’m not entirely sure what you mean. Do I need to have GenerateBlocks installed? Are you talking about block elements as per this article: https://docs.generatepress.com/article/block-element-content-template/
Thanks again
March 7, 2022 at 6:50 am #2145334David
StaffCustomer SupportYes you can remove:
.fl-builder-content { flex: 1 0 100%; }
Sorry what i should have said is set the
site-content
todisplay: block;
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.