Home › Forums › WoodMart support forum › Mobile menu not working
Mobile menu not working
- This topic has 26 replies, 3 voices, and was last updated 4 years, 5 months ago by Artem Temos.
-
AuthorPosts
-
June 29, 2020 at 11:35 pm #207411
leonardobrunoParticipantHello, the mobile menu on my site doesn’t work. When clicking on it, it does not open showing the options.
When inspecting with Google Chrome, I saw that there is an error: “Uncaught TypeError: Cannot read property ‘split’ of undefined.”
This error only happens on pages that are using WP Bakery Page Builder.
Can you help me?
June 30, 2020 at 7:51 am #207473
Aizaz Imtiaz AwanKeymasterHello,
First of all thanks for choosing our Theme, we are glad to be you in the WoodMart WordPress family
:-)
.Please deactivate all the third party plugins, activate parent theme. Clear cache and check back.
If the problem continues then provide admin panel login details with the URL of the website to check it myself and help you out accordingly because you forgot to provide the URL of the website.
Best Regards.
June 30, 2020 at 11:46 am #207540
leonardobrunoParticipantWe already try all these options
June 30, 2020 at 11:57 am #207542
Aizaz Imtiaz AwanKeymasterHello,
I have tried to login to your website but was unable to login. The credentials don’t seem to be correct.
Please provide me with correct admin panel login details to check it myself and help you out accordingly.
Best Regards.
June 30, 2020 at 12:02 pm #207548
leonardobrunoParticipantWe reset pass, please try again
June 30, 2020 at 12:15 pm #207554
Aizaz Imtiaz AwanKeymasterHello,
I have logged into your website and deactivated all the third party plugins and the mobile menu is working fine on my end.
Please clear cache and check back.
Video for Clarification: https://jmp.sh/Drtk1r5
Best Regards.
June 30, 2020 at 12:18 pm #207556
leonardobrunoParticipantWhen disable WP Bakery Page Builder, menu is working
But site need WP Bakery Page Builder to work correctly (a lot of pure code on page)June 30, 2020 at 12:30 pm #207560
leonardobrunoParticipantWith WPBakery on, when inspect site on Chrome (and refresh it), menu stop to work
June 30, 2020 at 12:31 pm #207561
leonardobrunoParticipantWe can turn on WooCommerce? these site is a live store
June 30, 2020 at 12:32 pm #207562
Aizaz Imtiaz AwanKeymasterHello,
I have revisited your website and the WPbakery page builder is active and I haven’t deactivated the plugin.
The issue is that most of the elements on the page are added to the code using the text block that’s why code is displaying on the front end. Please make sure that you have used the correct modules instead of text blocks. This will fix the issue.
Screenshot for Clarification: https://ibb.co/P6BGmg0
Best Regards.
June 30, 2020 at 12:48 pm #207565
leonardobrunoParticipantShowing this code (your screenshot), because WooCommerce was disabled, we use only nodules
June 30, 2020 at 12:51 pm #207566
leonardobrunoParticipantTabs of products modules, also dont work only on homepage (desktop or mobile)
June 30, 2020 at 12:56 pm #207568
Aizaz Imtiaz AwanKeymasterHello,
If you are not using WooCommerce then the module will not work because these modules require WooCommerce to be activated. Because the products are WooCommerce functionality and our theme doesn’t influence them.
Best Regards.
June 30, 2020 at 1:16 pm #207573
leonardobrunoParticipantSo, in that screenshot you showed us that we were using text blocks to insert the codes, but those text blocks appeared, because, when performing the tests, the Woocommerce has been disabled. If you activate it again, the text block will become a Woocommerce element.
I don’t know why but any element of WP Bakery that I put on a page, causes the mobile menu to stop working.
June 30, 2020 at 4:34 pm #207621
leonardobrunoParticipantI still can’t find a solution. Can you help me?
July 1, 2020 at 6:24 am #207701
Aizaz Imtiaz AwanKeymasterHello,
This is happening because the elements that are related to products require WooCommerce to be installed and configured for them to work correctly. If you are not using WooCommerce then the elements will not work.
I have tested your website and the mobile menu is working fine on my end. Please clear cache and check back.
Video for Clarification: https://jmp.sh/m9TmaAK
Best Regards.
July 1, 2020 at 12:20 pm #207810
leonardobrunoParticipantI cleared the cache and checked again and it’s still not working for me.
When I reload the page in mobile format, or when I check on my cell phone, the menu still doesn’t work.
July 1, 2020 at 1:14 pm #207838
Aizaz Imtiaz AwanKeymasterHello,
I have logged into your website and you have deactivated all the third party plugins that i have deactivated.
Screenshot for Clarification: https://ibb.co/tzxRg6B
Please deactivate all the third party plugins then clear cache and check back. This will fix the issue.
Then you can try and activate the plugins one by one and find which one is causing the issue in your case.
Best Regards.
July 1, 2020 at 2:22 pm #207860
leonardobrunoParticipantI recorded two videos for clarification (on private content).
As you can see in the 1st video, I disabled all third party plugins that are not essential for the site, and that are not the plugins that already come with the theme. As you can also see, even so, the error persists.
I noticed that if the option “Disable Page Title” is activated and if there is any element of WP Bakery on the page, the menu stops working (as you can see in the 2nd video).
I cannot leave WP Bakery disabled, as the entire site was created with it. Also, on the Homepage, I can’t leave the Disable Page Title option off, because I don’t want the page title to appear on it.
Best Regards.
July 1, 2020 at 9:27 pm #207942
leonardobrunoParticipantI managed to find a solution, but only by editing the theme codes.
The code in question is the onePageMenu function, which is in the file wp-content / themes / js / functions-min.js. It was causing an error and preventing the file from being fully executed.
What I did was remove this code from that function, since my site does not use One Pages. In doing so, the menu worked correctly.
I found that this code snippet was causing an error because when inspecting the site, on Console, it was the following message: uncaught TypeError: Cannot read property ‘split’ of undefined
I would like a definitive solution to this problem, since it is not ideal to change the theme files, or remove functions from it. Would an update be possible?
Attached the updated file.
Best Regards.
Attachments:
You must be logged in to view attached files.July 2, 2020 at 6:41 am #208001
Artem TemosKeymasterHello,
Could you please restore our theme’s original code and provide us your FTP access? Also, write steps that you perform to reproduce the problem with the menu. We will check and provide you with a solution.
Sorry for the troubles.
July 2, 2020 at 12:28 pm #208171
leonardobrunoParticipantI put the original files in the theme folder: wp-content/themes/woodmart/js, functions-original.js and functions.min-original.js.
I did not put them in place of the altered files, because the site cannot keep the error in the menu for a long time. But you can rename them to replace the changed files. Just don’t leave the site with the menu inoperative when you’re done.
As I explained, I identified the error by inspecting the site with Google Chrome and in the Console tab, there was the following error in the functions.min.js file: uncaught TypeError: Cannot read property ‘split’ of undefined.
I saw that the code snippet that was showing this error was the one that started with: onePageMenu:function(){.
Since no page on my site is Onepage, I removed this code snippet from the file, and the menu started to function normally. I believe that this piece of code was preventing the file from being fully executed.
The WP File Manager plugin is already installed on the website.
July 2, 2020 at 12:37 pm #208175
Artem TemosKeymasterPlease, restore original files and provide us your FTP access. We will do the test quickly.
July 2, 2020 at 1:40 pm #208200
leonardobrunoParticipantFiles restored. FTP access is in the private content.
July 2, 2020 at 1:44 pm #208203
Artem TemosKeymasterYou need to specify URL for the following menu item https://gyazo.com/2b63e6a1d53da629d8d9fe3e25549baf
Otherwise, you need to disable One page anchor option since it will cause the error without URL field.July 2, 2020 at 4:33 pm #208247
leonardobrunoParticipantThat worked! I hadn’t seen that there was that option on the menu.
Thanks for the support!
July 3, 2020 at 6:22 am #208336
Artem TemosKeymasterGreat, you are welcome!
-
AuthorPosts
Tagged: mobile menu
The topic ‘Mobile menu not working’ is closed to new replies.
- You must be logged in to create new topics. Login / Register