-
Hi there,
I have almost identical 2 websites.
Both show cross sell products at the cart page.
1. is OK with 2 columns
2. is showing 1 product in 1 column.I have tried to check css file to check difference, but it seems same to me.
-
Hi there,
Both sites show 2 columns when I check:
https://app.screencast.com/D3QkovGwEupP9 -
Hi,
Thanks for fast reply. It seems you see some products offered by “product recommendation” plugin but not with cross sell.
Can you please add new laptop to cart? -
Hi there,
in your child theme you have this:
.woocommerce .cart-collaterals .cross-sells ul.products, .woocommerce-page .cart-collaterals .cross-sells ul.products { float: none; }
That breaks the columns on that page.
On your other site you have the same CSS but you also have this:
.woocommerce ul.products { display: flex; flex-direction: row; flex-wrap: wrap; }
Which fixes the problem.
-
Anonymous
Hi David,
Thanks a lo.
Should I remove this completely?
.woocommerce .cart-collaterals .cross-sells ul.products, .woocommerce-page .cart-collaterals .cross-sells ul.products { float: none; }
-
btw, I have just checked the style and both has this.
https://i.imgur.com/di7Tol1.pngbut non has this.
.woocommerce .cart-collaterals .cross-sells ul.products, .woocommerce-page .cart-collaterals .cross-sells ul.products { float: none; }
-
Just add this CSS to your site:
.woocommerce ul.products { display: flex; flex-direction: row; flex-wrap: wrap; }
Its different to the one you have in your screenshot.
-
got it, thanks
-
David
You’re welcome
-
Anonymous
adding this broke product listing in tags, categories etc.
I had to remove the added code. -
Can you share the link again?
-
hi,
Sure added.
I am not sure why it has been removed.Btw, I downloaded child theme’s css files for both websites and compared them via vscode compare plugin.
It looks like they are same. -
When the topic is marked as resolved, the forum erases all info in the private info field to protect user privacy.
Which section of which page should I be looking at?
What is the expected layout?
-
I see, that makes sense.
When you go to cart page, left and a bit low, there are cross sell products.
They should be shown 2 products in each line.
But there are 1 product in each line. -
Try this:
.cross-sells ul.products { display: flex; flex-wrap: wrap; }
-
That fixed.
Thanks a lot.It is still weird why other one doesn’t have this issue but anyway.
- You must be logged in to reply to this topic.