[Support request] Back to top issue

Home Forums Support [Support request] Back to top issue

Home Forums Support Back to top issue

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1111748
    Pedro

    Hello! I don’t know why, but for some strange reason when I click the Back to top button on the product page, it adds the product to the cart.

    This happens in the mobile version of my site.

    #1111758
    Leo
    Staff
    Customer Support

    Hi there,

    Can you confirm that you are using the latest GP premium version 1.9.1?

    Let me know πŸ™‚

    #1111765
    Pedro

    Off course, i use all the last version

    #1111770
    Leo
    Staff
    Customer Support

    Ahh I think that’s a bug in SVG icon.

    What happens if you use font icon instead?
    https://docs.generatepress.com/article/svg-icons/

    Let me know πŸ™‚

    #1111777
    Pedro

    Hi leo! I made the change but the problem continued

    #1112484
    Tom
    Lead Developer
    Lead Developer

    Thought we had this fixed in 1.9 – sorry about that.

    Try this CSS:

    @media (max-width: 768px) {
        .add-to-cart-panel:not(.item-added):not(.show-sticky-add-to-cart) {
            pointer-events: none;
        }
    }

    Let me know πŸ™‚

    #1112704
    Pedro

    Hello Tom! The code corrects the problem with the button.

    However it makes the Sticky add to cart disappear.

    #1112795
    Tom
    Lead Developer
    Lead Developer

    Hmm, it shouldn’t – can you add the code so I can see the issue?

    #1112805
    Pedro

    What happens is that my site is in production, and adding that code would affect the user experience to my visitors.

    #1112817
    Tom
    Lead Developer
    Lead Developer
    #1112839
    Pedro

    Hello Tom! This new code corrects the problem. Thank you!

    If a new version of GP is published and corrects this problem.

    Should I delete the code you just gave me?

    #1113388
    Tom
    Lead Developer
    Lead Developer

    Yes, you’ll be able to remove that CSS in GPP 1.10.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.