- This topic has 23 replies, 2 voices, and was last updated 6 years, 11 months ago by Tom.
-
AuthorPosts
-
May 19, 2017 at 7:34 am #320698Mikko
Hi,
Oh yeah! Today I noticed the new WooCommerce-addon. I was just fiddling with my shop and getting it ready for action. This saved a ton of work, and it looks good.
My site is here:
https://mihku.fi/Two questions:
1) I think I might want to have my shopping cart fixed to the bottom right corner of the screen, since my mobile menu is already crowded. I’ve already implemented this with WP Menu Cart Pro, which includes a short code for the shopping cart. Does GeneratePress include a short code or perhaps some other way to do this without a plugin?
2) On mobile, there’s no space between items (two columns). The images especially have zero padding. This might be because I’ve changed the WooCommerce image sizes from the defaults to 360×360, 720×720, 180×180. But I think these shouldn’t affect the visible size?
May 19, 2017 at 9:37 am #320796TomLead DeveloperLead DeveloperHi there,
1. Probably easier to just use the plugin as you already have it configured.
2. Can you try clearing your Autoptimize cache?
May 19, 2017 at 9:48 am #320807MikkoThanks!
2. I just did, and unfortunately it didn’t help.
May 19, 2017 at 10:08 am #320820MikkoHmm, weird. It now looks okay in the WordPress edit preview (set to show mobile; the changes are saved), but not when I’m loading the site on my phone or iPad…
May 19, 2017 at 10:10 am #320823TomLead DeveloperLead DeveloperBrowser cache maybe?
May 19, 2017 at 10:16 am #320830MikkoI just tried a browser that I never use, the problem persists.
But hey! Uninstalling Autoptimize solves the problem, and installing it again makes the problem reappear.
May 19, 2017 at 10:27 am #320840MikkoStarting anew with Autoptimize, the basic setting that causes the problem is “Optimize CSS code”.
May 19, 2017 at 11:33 pm #321049TomLead DeveloperLead DeveloperInteresting. In the excluded CSS file, try adding: woocommerce-mobile.css
May 19, 2017 at 11:38 pm #321053MikkoTom, I tried, it didn’t help.
Actually yesterday I tried to exclude all of the CSS-files in GP’s WooCommerce-addon’s folder: nothing helped, but there were sometimes weird changes in the layout. I’d imagine excluding css files from optimization shouldn’t affect layout?
May 20, 2017 at 9:13 am #321258TomLead DeveloperLead DeveloperHmm, weird.
For now, you can do this:
@media (max-width: 768px) { .woocommerce ul.products li.product, .woocommerce-page ul.products li.product { margin-left: 3.8%; } }
May 20, 2017 at 10:24 am #321321MikkoThanks! You know what? More weirdness!
Your CSS fixes the problem — unless the option “Also aggregate inline CSS?” is on!
I used WP’s Custom CSS to add that fix. I guess that’s inline CSS then?
I promised more weirdness: If the option “Also aggregate inline CSS” is OFF, another small display glitch appears elsewhere, again on mobile only. On my blog home pages (really the category pages), there’s some extra margin on the left side of all posts. There’s some gray background showing where there shouldn’t be any. I remember seeing this glitch a month or so ago, I guess I fixed it by switching on “Also aggregate inline CSS”.
These glitches never appear on preview window, only after Autoptimize has done it’s thing.
My own little fix to your fix: padding instead of margin seems to work even with “Also aggregate inline CSS” on. No idea why!
May 21, 2017 at 10:20 pm #321966MikkoHello!
I just tested with another site with only a few of my own customizations.
This combination produces a display glitch:
– Autoptimize with “Also aggregate inline CSS” turned OFF
– GP’s simple columns
– Viewing the blog home page on mobileHere’s an image of the display glitch:
May 21, 2017 at 10:27 pm #321968MikkoJust for your information — no hurry — at the moment I have no live sites with problems. BTW, Masonry worked without glitches.
May 21, 2017 at 10:55 pm #321973MikkoLet me know if and when you want me to bring this issue up on Autoptimize’s support forums!
May 22, 2017 at 12:25 am #322015TomLead DeveloperLead DeveloperHmm, can’t reproduce that.
Here’s my settings: https://www.screencast.com/t/iOVF5Vgp
Here’s the site: https://www.screencast.com/t/ifTsrOmL
Any chance you can link me to a site with this issue?
-
AuthorPosts
- You must be logged in to reply to this topic.