- This topic has 12 replies, 3 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
December 30, 2022 at 12:15 pm #2478318
Dale
I recently installed WP-Optimize Premium – Clean, Compress, Cache and noticed my mobile iphone product display only contains the product image. No description, price, add to cart button, etc. The issue can also be seen by reducing the display size on my windows desktop display. Reaching out to WP-Optimize, they say the issue is with the amplitude api. Not sure what to do with that piece of information. https://www.nutristand.com/product/arginine-hge-drink-mix/
December 30, 2022 at 12:18 pm #2478319Leo
StaffCustomer SupportHi there,
Reaching out to WP-Optimize, they say the issue is with the amplitude api. Not sure what to do with that piece of information.
Did you follow up with them if you aren’t sure what the information meant?
I can’t see how this would be a theme issue at all and would assume it’s either an issue with WP-Optimize Premium or WooCommerce itself.
If WPO’s support team thinks it’s a theme issue, can you ask them to provide more information?
January 11, 2023 at 4:00 pm #2492103Dale
Hello again,
If I activate the WP-Optimize plugin and the Generate Press Plugin with the WooCommerce Module for layout options, my mobile display only contains the product images – no buy now, description, price, etc. Disabling either plugin corrects the issue.
Here is some more information from WP-Optimize
“Hi Dale,
This is Venkat from development team.
A CSS rule causes issue in mobile display. You need to find out which plugin or theme adds the rule and remove it.”I have an email with images of the code that needs to be changed, but I can’t post the image here.
So I will forward an email to support with the images.
Thanks!
Dale
January 11, 2023 at 4:16 pm #2492117Leo
StaffCustomer SupportNot sure if I fully understand.
So disabling WP-Optimize plugin solves the issue? If so I would think that one of the plugin settings is causing the issue.
Can you please follow up with their support?
And what code did they suggest that needs to be changed?
January 11, 2023 at 5:43 pm #2492154Dale
Please check the support email to see the code that need changing. As I said it is an image that I can’t post here.
January 11, 2023 at 6:02 pm #2492175Dale
Leo,
I see now that I can link to an image but I think that would require me to save the image from my email to a local file and FTP it to a public directory so I can then link to it. Could you be so kind as to look at the email I send to support that has the images? Also WP-Optimize has looked at the issue and it does not appear to be a setting. Disabling your woo module fixes the problem also, so the balls in your hands right now.
January 11, 2023 at 6:09 pm #2492176Leo
StaffCustomer SupportCan you provide the screenshot using a method like this?
https://docs.generatepress.com/article/using-the-premium-support-forum/#uploading-screenshotsIt’s much better if we can keep all conversations and information in one place.
Also WP-Optimize has looked at the issue and it does not appear to be a setting. Disabling your woo module fixes the problem also, so the balls in your hands right now.
I can’t see how the WooCommerce module would cause this issue – we have not had any other reports on this with any other caching or optimization plugin.
Are you able to start a staging site so we can go through some further debugging steps?
January 12, 2023 at 12:06 pm #2493338Dale
Hi Leo,
Here are the images, thanks for the direction on posing images.
Will it be possible to fix this with additional css code? If not I will create a staging site. let me know if I should still look fro other conflicting plugins.
Best regards,
Dale
January 12, 2023 at 12:57 pm #2493400Leo
StaffCustomer SupportI’m not sure why that code would cause a conflict with WP Opitmize.
The same code is used in a site library template default install here and does not cause any issues:
https://www.screencast.com/t/G63GTR1EufCan you follow up with WP Opitmize’s support team and ask why their plugin would cause this conflict?
You can show them this page without their plugin for example:
https://gpsites.co/seller/product/happy-ninja/It’s the exact same code.
January 13, 2023 at 8:00 am #2494390Dale
Leo,
Can you write a small CSS script to disable this specific command?
Thanks!
DaleJanuary 13, 2023 at 8:50 am #2494458David
StaffCustomer SupportHi there,
the issue is because the Optimization plugin is messing with the loading order of the sites CSS.
For example – the Woocommerce plugin and GP loads its CSS responsively – there are two mobile stylesheets for mobilewoocommerce-smallscreen-cssandgenerate-woocommerce-mobile-css.And they are enqueued like so:
<link rel="stylesheet" id="woocommerce-smallscreen-css" href="https://gpsites.co/niche/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=6.3.1" media="only screen and (max-width: 768px)"> <link rel="stylesheet" id="generate-woocommerce-mobile-css" href="https://gpsites.co/niche/wp-content/plugins/gp-premium/woocommerce/functions/css/woocommerce-mobile.min.css?ver=2.2.0" media="(max-width:768px)">Where the
media="only screen and (max-width: 768px)attribute tells the browser to only load those stylesheets on smaller screensAnd it is these two style sheets that are responsible for the mobile layout – specifically this one:
woocommerce-smallscreen-cssAnd on your site that CSS has been “lost” amongst the combining of the CSS which is breaking the layout.
Watch this video:
https://www.screencast.com/t/NJsW8uvqFeu
1. i start with the Seller Site from the GP Site library. And it looks OK.
2. i delete ( cut ) thewoocommerce-smallscreen-cssand you see the layout breaks just like your site,
3. i then paste thewoocommerce-smallscreen-cssinto your site and the layout is fixed.The Optimize plugin author should fix this, it should be as simple as excluding
woocommerce-smallscreen-cssstylesheet from their optimizations.January 13, 2023 at 12:14 pm #2494642Dale
David,
Thanks much! Just to confirm, and one more question. When I disable the GP WooCommerce Module for layout options, all is fine. I have not tested other plugins for conflicts with this module. Could there be another plugin involved in this issue?
Thanks again!
DaleJanuary 14, 2023 at 3:35 am #2495106David
StaffCustomer SupportThe GP Premium Woocommerce module adds extra customizer functions in Customizer > Layout > Woocommerce.
One of which allows you to change the width of the Product Image layout. That uses CSS to create a row layout. But that CSS should only apply to desktop as on smaller screens the above smallscreen and mobile CSS kicks in.Those mobile stylesheets by default are loaded after most other styles so they override the desktop styles.
That plugin is moving ALL of the mobile/smallscreen CSS into its own inline stylesheet ie.
<style id="wpo-min-header-1" media="only screen and (max-width: 768px)">And its loading it at the very top of the
head, before any other CSS.
So those styles now get overwritten by desktop styles.See here – where you can see their stylesheet and look what happens when i move it down the stack to load after the other styles:
https://www.screencast.com/t/2933rl1gv
The plugin developer really should look handle the issue as its there code that is moving the CSS.
-
AuthorPosts
- You must be logged in to reply to this topic.