Site logo

Archived topic

Mobile Menu

5 replies · Started by Tugce on November 5, 2021

Viewing posts 1–6 of 6

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,

Hi there,

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

Let me know :)

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

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

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

This archived topic is closed to new replies.