- This topic has 10 replies, 3 voices, and was last updated 8 years, 2 months ago by
Tom.
-
AuthorPosts
-
January 12, 2018 at 10:19 am #469416
luigi
Maybe it’s been asked before, sorry for eventualy duplicate
I’m talkin about woocommerce loop/shop page
I need to put correctly 3 column for desktop device, 3 column for ipad(landscape), 2 for ipad(portrait)
one column for mobile all of them centeredI tried many times but without success.
i’m using Gp premium 1.5(I can’t update i receive an error)
Thank youJanuary 12, 2018 at 12:20 pm #469525Leo
StaffCustomer SupportHi there,
What error are you receiving?
Any of these? https://docs.generatepress.com/article/updating-issues/
January 13, 2018 at 2:11 am #469849luigi
“It’s not possible to create the directory. gp-premium/backgrounds/functions”
can you help me about columns?
Thank youJanuary 13, 2018 at 9:16 am #470086Tom
Lead DeveloperLead DeveloperHere’s the cause of that error: https://docs.generatepress.com/article/updating-issues/#could-not-copy-file
Have you tried using the WC columns option within the WC module? It has a desktop and mobile option.
Let me know 🙂
January 13, 2018 at 10:48 am #470154luigi
I’ve installed the windows plugin but now Gp premium doesn’t show the upgrade.
In aspect–> customize I set 3 columns for desktop and one for mobile but I need to show correctly the products in ipad (portrait and landascape) and there isn’t any other option. Can you try yourself how ugly it’s showed the shop page.
I cant beleive that. I need to solve.January 13, 2018 at 8:32 pm #470371Tom
Lead DeveloperLead DeveloperWooCommerce columns are tough to manipulate, but we do have plans to add a tablet option into the Customizer option for them.
For now, give this a shot:
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) { .woocommerce .wc-mobile-columns-1 ul.products li.product, .woocommerce-page .wc-mobile-columns-1 ul.products li.product { width: 46.2%; clear: none !important; } .woocommerce .wc-mobile-columns-1 ul.products li.product:nth-child(2n+1), .woocommerce-page .wc-mobile-columns-1 ul.products li.product:nth-child(2n+1) { clear: both !important; } }iPad using landscape should use your desktop layout by default, so the above only targets portrait and forces 2 columns.
Let me know – it might need some tweaking.
January 14, 2018 at 7:19 am #470643luigi
It seems to work only for resolution between 769*1024 (I tested it on chrome)
Really strange, but i’ve just encountered some problem with Ipad resolutionmaybe there will be some trick for that device.
Thank youJanuary 14, 2018 at 7:57 am #470662luigi
Understood. at that resolution woocommerce put a margin-left: 0;
It’s sufficient to correct it.Thank you very much
January 14, 2018 at 9:34 am #470719Tom
Lead DeveloperLead DeveloperDid you get the margin working? 🙂
January 14, 2018 at 10:31 am #470786luigi
Yes I did
I put a 2.8% margin-left and now the page looks fine (for 768*1024 resolution)
I’m wondering if there is any way to center the columnwhat do you think about?
thank you
January 14, 2018 at 8:11 pm #471037Tom
Lead DeveloperLead DeveloperSince the columns are using floats, it would be hard to center them.
You currently have a
max-widthapplied to each column, which is why they don’t look centered.I want to use flexbox or CSS Grid for the columns in the near future. That will make it much easier.
-
AuthorPosts
- You must be logged in to reply to this topic.