Mobile menu always open, collapse button does not collapse

We have several sites that use X Theme, all on the same version of X/Cornerstone.

Most recently, someone noticed that on one of these sites, the mobile menu is always open, and cannot be closed. The collapse button that usually would close the menu does nothing when clicked.

  • The site in question is on the most recent version of Cornerstone, 3.0.4, and uses a child theme, but it is on X version 6.0.4.
  • There are no console errors.
  • The only changes made to the site, in terms of actual code, have been general plugin updates - but I’ve tried turning off all plugins, and the issue persists. There have probably been changes made within the Wordpress admin, but none made to the child theme files, etc.
  • There is no custom CSS/JS in the customizer.

I’m at a loss for what might be causing this. Will provide site URL once this ticket is picked up. Any help would be appreciated!

Hi there,

Thanks for writing in and please provide all the URLs that has this issue. For the meantime, please check for the following first:

  1. Ensure everything is up to date according to our version compatibility list at https://theme.co/apex/forum/t/troubleshooting-version-compatibility/195. Please follow the best practices when updating your theme and plugins. See https://theme.co/apex/forum/t/setup-updating-your-themes-and-plugins/62 for more details.

  2. Clear all caches including browser cache then deactivate your caching plugins and other optimization plugins.

  3. If you’re using a CDN, please clear the CDN’s cache and disable optimization services.

  4. Test for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

  5. Remove custom CSS, Javascript and templates.

  6. Reset your htaccess file by renaming it to .htaccess-bak. Then in WP Admin Menu, go to Settings > Permalinks and just click the Save Changes button.

  7. Contact your host to increase your allocated memory or do it yourself by adding this code in your wp-config.php

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

Thanks.

Hi Rad,

Thanks for the response. So I went through all the regular troubleshooting steps 1-8, but unfortunately it did not resolve the issue.

After digging a bit deeper, I’ve found the following.

  • It is related to my child theme.
  • I have a custom “_nav-primary.php” file - when I rename that, the mobile menu works perfectly.

I fixed the issue by replacing the content of my custom _nav-primary.php with the content found at the parent theme’s file: /x/framework/legacy/cranium/headers/views/global/_nav-primary.php.

It looks like at some point the _nav-primary.php file was either deprecated or moved.

Either way, I’ve fixed my own issue. Thanks anyway!

Glad you’ve sorted it out :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.