Archived topic
MiniCart not working properly with WP Rocket
3 replies · Started by Robert on September 1, 2020
Hello,
i have an issue regarding the caching plugin WP Rocket with the GeneratePress MiniCart.
Everytime i deactivate WP Rocket it's working fine, once I activate it, the Minicart is not showing up on certain single-pages. It's like just nothing happened. Even if i try to deactivate additional Rocket-Features like Minification (CSS, HTML, JS) it has no influence on the problem with showing up.
I think the easiest way to use both, WP Rocket and MiniCart, is to exclude spezific JS and CSS-Files from Caching. Therefore it might be helpful if you could allocate the path for the inbound components of the GP MiniCart, since there was nothing i could find in the general documents.
Looking forward hearing from you soon,
Daniel.
Hi there,
Try excluding these files and see if that works:
https://www.screencast.com/t/tnkpo0du
Hi Leo,
thanks for your quick reply.
It now works on shop page:
https://www.screencast.com/t/2PbB4uzM
but not on homepage:
https://www.screencast.com/t/s59VRTekG
(And yes: i cleaned Rocket-Cache, op-cache and browser cache).
I thought it was a question of z-index hierarchy so i tried different settings but that makes no difference.
Is there a way to make the GP MiniCart appear on startpage?
Thanks,
Daniel
Hi there,
try adding this CSS:
.wc-menu-item:not(.has-items) .wc-mini-cart {
display: initial !important;
}