Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Primary Navigation works on desktop, not mobile

  • A user at https://northernohio.golf pointed out that he gets no activity by clicking either MENU or the search icon when the site is viewed on a mobile device, which I have confirmed on my own device.

    But the menu works just fine once the window size hits larger than mobile, i.e. on a laptop, desktop, ipad.

    The issue may be related to the recent theme updates? It was working correctly before.

    Thank you!

  • (To be more exact, the Primary Navigation works on iPad in wide mode when the full menu is shown, but fails just like on a mobile device when rendered tall, and the MENU link is displayed.)

  • Hi there,

    You have a javascript error on the page:

    Uncaught TypeError: apbctCheckAddToCartByGet is not a function

    The page is cached/minified, so I can’t see where it’s coming from, but it looks to be a plugin that you’re using.

    Javascript errors will prevent any further javascript (used to open modals, menus etc…) from working.

  • Thanks Tom.

    I turned off LiteSpeed Cache. Can you better pinpoint which plugin might be causing the error?

    We have so many plugins running, doing the one-by-one route is a project…

  • Argh, I think I found it. But it’s a problem. It’s the Litespeed Cache plugin itself.

    I turned off the cache option in the plugin first. No difference.

    Then just now, I deactivated the entirety of that plugin. And the menu started working again.

    Any thoughts or ideas on how to be able to use that cache plugin and the Generate Press primary menu, too?

  • Any thoughts or ideas on how to be able to use that cache plugin and the Generate Press primary menu, too?

    I would recommend checking with LiteSpeed’s support team. They should be familiar with GP and know the steps need to be taken.

  • Thanks. I’ve posted a support request to the LiteSpeed Cache plugin forum, and will report back with their response.

  • The apbctCheckAddToCartByGet function looks like a function coming from a third-party plugin. apbct should be their prefix if that offers any clues.

  • apbct is from cleantalk, an anti-spam plugin. They reference it here:
    https://cleantalk.org/help/cookies-description
    WordPress Anti-Spam cookies (list of the cookies that CleanTalk plugins use and short descriptions of these cookies):
    apbct_* – Group of cookies which are set from backend and contain information about the current user.

    But the cleantalk plugin is still active on the site and the GeneratePress Primary Menu works fine.

    The menu malfunction is definitely caused by the LiteSpeed Cache plugin.

    Maybe apbct is causing a javascript error, but it’s not the culprit for the GP menu issue?

  • Another thing to check: The issue could be related to a conflict between the CleanTalk and LiteSpeed plugins. LiteSpeed might be causing CleanTalk to throw a JavaScript error, which could then affect the menu functionality.

  • I don’t know how to “check” that. Nor what to do with the info if I did…

  • I mean that’s something for LiteSpeed support to possibly check if they need additional context on the issue.

  • Got it, thx. I’ve added the info to the LiteSpeed support ticket.

  • Let us know how it goes.

  • The issue was a javascript combine setting in the LiteSpeed Cache plugin.

    The fix: under Page Optm -> JS option -> disable all the JS options, then purge all

    Thanks for all of the responses!

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