- This topic has 14 replies, 3 voices, and was last updated 3 years, 1 month ago by Gertjan.
June 10, 2017 at 2:24 pm #331723Gertjan
I can’t get the number of columns on the Woocommerce products page to work. If is set it to 3 and clear my cache and reload the page I can see 3 columns for a split second, then it changes to 1. Can you assist in finding the problem?
I’m hoping to hear from you soon.GeneratePress 1.3.48GP Premium 1.3June 10, 2017 at 2:37 pm #331725LeoStaffCustomer Support
Do you see it change in the preview? If so but not in live site it’s likely a caching issue.
Any caching plugin or server caching?
Can also try #1 on this page: https://docs.generatepress.com/article/debugging-tips/June 10, 2017 at 2:53 pm #331727Gertjan
I also see it in the preview (customizer), and I have flushed my caching plugin 100 times by now. Also using an incognito tab, so no caching on the client side, and also flushed my Rediscache DB. The fact that it isn’t caching is also noticeable bacuse of the split second when you see 3 columns. When the pages finishes loading it changes to 1 column.
My plugins can’t cause this problem, it’s all other kinds of plugins, nothing close to styling the shop page.
I’ve also tried Woocommerce product archive customiser, but that couldn’t get it to work either.June 10, 2017 at 3:01 pm #331729LeoStaffCustomer SupportJune 10, 2017 at 3:09 pm #331733Gertjan
The site is in Dutch by the wayJune 10, 2017 at 6:53 pm #331779TomLead DeveloperLead Developer
The caching plugin you’re using is ignoring the media query attached to the mobile CSS file.
If you want to continue using that specific caching plugin, you’ll need to tell them their code doesn’t work with the media parameter in wp_enqueue_style: https://developer.wordpress.org/reference/functions/wp_enqueue_style/June 11, 2017 at 1:35 am #331872Gertjan
Unfortunately, after disabling my caching plugin (WP Speed of light) and flushing my Rediscache DB, the shop page still displays only 1 column. So I guess I can enable the plugin again and look further with you guys into the cause of this?June 11, 2017 at 10:25 am #332033TomLead DeveloperLead DeveloperJune 11, 2017 at 11:11 am #332062Gertjan
Disabled the caching, only Rediscache is enabled right now. Maintenance mode is disabled, so you can visit the site now.June 11, 2017 at 8:11 pm #332196TomLead DeveloperLead Developer
Something is still caching/minifying the output. You can see this by viewing the source of your site.
Any server caching? Cloudflare? Other plugins?June 12, 2017 at 5:48 am #332370Gertjan
Okay, I found out which plugin was causing this problem, it was Above The Fold Optimization. This probably has to do with the CSS Optimization, so maybe I can solve this by adding css for the shop page to my Critical CSS. Do you have any idea what this code would look like?June 12, 2017 at 8:49 am #332451LeoStaffCustomer Support
I think the problem as Tom mentioned is that the plugin is ignoring the media query attached to the mobile CSS file which means it won’t execute the CSS even though it’s there.
That plugin doesn’t really have decent review either. Maybe try to find an alternative?
Here are some optimizing tips: https://generatepress.com/fastest-wordpress-theme/June 12, 2017 at 12:39 pm #332558Gertjan
It’s making a great difference in Google PageSpeed scores, so I would like to keep it. If I know the required CSS I can add it to the Critical CSS of the plugin, so it will always execute that CSS. I’d like to try that beofre looking for an alternative. What’s the required CSS?June 12, 2017 at 8:14 pm #332700TomLead DeveloperLead Developer
It’s not that it isn’t executing the CSS, the issue is it’s stripping the media query that applies the CSS to mobile only.
If you really want that plugin to work, you might need to report this issue to the developer and hope that they fix it.June 19, 2017 at 11:44 am #335802Gertjan
Alright, thanks for the help.
- You must be logged in to reply to this topic.