Support » Theme: GeneratePress » Mobile Menu Not Working When Logged Out

  • dwcandy

    (@dwcandy)


    I am having issues with my mobile nav menu displaying in GP when logged out.
    It displays to a logged-in user
    It displays as a logged-out user with any query i.e. https://m4lpt.com/?anyquery
    Desktop nav menu displays.

    I believe it is at least partially due to a caching issue with WPRocket, but even with the plugin deactivated and cache cleared, it still doesn’t display on some pages (mostly pages, displays on posts with plugin deactivated).

    Is it a caching issue, and if so, what file do I need to exclude from minification in order to make it work again?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Leo

    (@leohsiang)

    Hi there,

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

    Let me know 🙂

    Thread Starter dwcandy

    (@dwcandy)

    That would be difficult to do without breaking the function of the site.
    Is there any other way to figure it out?

    When I’m logged in it works and with https://m4lpt.com/?nocache it works, so I think it has to be due to something caching the script.

    In Dev console, it shows that the click on the hamburger menu is being picked up, it’s just not showing the mobile nav without a ? in the URL.

    Thread Starter dwcandy

    (@dwcandy)

    Is there a way to tell which js / jquery file is being called upon?

    Leo

    (@leohsiang)

    That would be difficult to do without breaking the function of the site.
    Is there any other way to figure it out?

    The best method would be to start a staging site so we can go through some debugging tests.

    The free theme doesn’t have two different set of code for login and logout so it’s likely a plugin conflict.

    I would’ve assumed that it’s WP Rocket but you mentioned above that it doesn’t fully resolve the issue.

    Therefore we would need to go through some debugging tests.

    Thanks for your understanding.

    Thread Starter dwcandy

    (@dwcandy)

    With WP Rocket disabled, the nav menu works on single posts, but not for pages or categories. Does that give any insight?

    I tried disabling the other plugins, and the issue is the same… Single posts work, but other page menus don’t.

    Does the mobile nav display use jquery?
    I thought I read somewhere that GP stopped using jquery.
    If so, what file path does that pull from?

    Leo

    (@leohsiang)

    I tried disabling the other plugins, and the issue is the same… Single posts work, but other page menus don’t.

    We will need to see the site with all plugins and custom functions disabled.

    There is no difference in the mobile menu code in single posts and other pages.

    We haven’t had other reports on this either so I’m guessing there is something going on with your install.

    Thread Starter dwcandy

    (@dwcandy)

    Leo,

    I made a copy of the site on https://test.m4lpt.com/

    It’s not an exact copy because I just did it quickly, but everything seems to work with the mobile menu both with and without the plugins enabled.

    All the plugins are currently disabled at https://test.m4lpt.com

    Let me know what you’re able to figure out.

    Thread Starter dwcandy

    (@dwcandy)

    Solved!

    It was an update to WP Rocket. It was using remove unused CSS, so the toggled menu css class was removed.

    Leo

    (@leohsiang)

    Glad to hear 🙂

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