Mobile Menu stays open, will not close. https://kelliecoatesgilbert.com - Running child theme with X 7.2.2 - Cornerstone 4.2.2
Thank you for reaching out to us. It looks like a third party plugin / script conflict. Please check for the following first:
-
Ensure everything is up to date according to our version compatibility list at https://theme.co/docs/version-compatibility. Please follow the best practices when updating your theme and plugins. See https://theme.co/docs/product-updates for more details.
-
After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors. If you’re using a CDN, please clear the CDN’s cache and disable optimization services.
-
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.
-
Remove custom CSS, JavaScript and deactivate your child theme and switch to parent theme (take a complete backup first).
Let us know how this goes!
It is not a plugin conflict. I tested each one with no success. This has happened on others of my clients’ sites to the point that I have stopped updating X and Cornerstone. I tried updating both this week for a client, but this result is prompting me to ask for help. I don’t want to continue allowing Cornerstone or X theme versions to fall behind because of this error. Please help to correct it. I can provide a login.
Hey @JonesHouseCreative,
If the above steps didn’t help you then please provide us the access to your site so that we can check your settings and investigate further. Please create a secure note with the following info:
- Link to your site
- WordPress Admin username / password
To know how to create a secure note, please check this out: https://theme.co/apex/forum/t/how-to-get-support/288
Best of luck!
Secure note
Hello @JonesHouseCreative,
I have checked your site and it appears that you have a broken child theme. Please switch to the parent X theme and test your site again. You may need to remove any template files that you have added in the views
folder because it is causing some issues.
Kindly let us know how it goes.
Are you able to tell me which template files are causing the issue? That’s a rather vague reply.
Sorry but we can not really point that out, you need to add your customization/template file on your child theme one-by-one and see which one is causing the issue. Then from there, you need to modified the customization/template file that causing the issue to adhere to the latest version.
More likely it’s a customization/template file that has something to do with the header. If it is a template file, then you need to copy a new copy of that template file from the parent theme.
Thanks,
Thanks for your help. I was able to find which directory in the child theme was causing the issue with the mobile menu, but it seemed it was the entire directory rather than just a single file. I had put a copy of the framework directory from the parent theme directly into the child theme and made edits in the legacy templates. However, it seems that the mere presence of that directory in the child theme is what broke the mobile menu. How can I customize templates in the child theme if the website breaks by merely having those templates in the child theme? I’ve had to switch to the parent theme to make the mobile menu work, as per your instructions, but that totally defeats the purpose of having a child theme. Please advise.
The reason behind the problem that you are experiencing is that not all files inside the framework
folder are overrideable.
You need to select the files that you want to override and create empty folders on your Child Theme and only copy the file that you need to override.
For example, if you want to override the file below inside your Child theme:
/framework/legacy/cranium/headers/views/global/_navbar.php
You need to add empty folders of framework
, legacy
, cranium
, headers
, global
respectively inside each other and finally copy the _navbar.php
file into global
folder.
Kindly click here for more information on that.
Thank you.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.