[Support request] Mobile Menu

Home Forums Support [Support request] Mobile Menu

Home Forums Support Mobile Menu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1993028
    Tugce

    Mobile menu doesn’t open after the 1st click, but 2nd click.

    Can you look into it and let me know how I can fix that?

    Thans,

    #1993055
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can disable all plugins except GP Premium to eliminate conflicts from other plugins first?

    Let me know 🙂

    #1995459
    Tugce

    Hi,

    Thaks for your reply.

    It seems that the problem is caused by WPRocket’s following option:
    https://ibb.co/fvKPdk6

    What should I write to exclude the dropdown mobile menu?

    Best wishes,

    Efe

    #1995471
    Elvin
    Staff
    Customer Support

    Hi Efe,

    Try excluding scripts from /wp-content/plugins/gp-premium/ and /wp-content/themes/generatepress/.

    But if you want to be more specific:

    For the default menu:

    /wp-content/themes/generatepress/assets/js/dropdown-click.js
    or
    /wp-content/themes/generatepress/assets/js/dropdown-click.min.js

    For off-canvas menu:
    /wp-content/plugins/gp-premium/menu-plus/functions/js/offside.min.js

    For the sticky script:
    /wp-content/plugins/gp-premium/menu-plus/functions/js/sticky.min.js

    A wise man once said:
    "Have you cleared your cache?"

    #1995477
    Tugce

    Sorry, but I’m not good at coding. Would it be enough just to copy and paste the texts?

    I just found the WPRocket’s solution below, pasted it in the related section but nothing fixed.

    GeneratePress
    Fixes the mobile menu requiring a double touch, if touching the mobile menu is the first interaction of a visitor with the page.

    /generatepress/assets/js/main.min.js
    var generatepressMenu

    #1995484
    Elvin
    Staff
    Customer Support

    This won’t need coding. You only need to exclude the scripts of the mentioned paths so it doesn’t break when WP Rocket aggregates assets.

    https://docs.wp-rocket.me/article/39-excluding-external-js-from-concatenation

    A wise man once said:
    "Have you cleared your cache?"

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