Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Mobile menu item not working
This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 2 years, 9 months ago.
- AuthorPosts
- August 25, 2020 at 8:17 am #29083
Hi,
Thanks for the great plugin.
We are having trouble with the search in our navigation menu on mobile. I have created a menu item (in ‘site menu’) using the shortcode, this works perfectly on desktop.
On iphones, nothing happens when the search bar is touched (no keyboard comes up). On androids (Samsung galaxy and a Huawei), it works so the keyboard appears and search results appear, however you can’t actually see the search bar to type.
On our staging site I have tried deactivating all the plugins and have tried the twenty-nine-teen theme with no success.
I have reset the staging site for you to test:
https://raskmedia2020.flywheelstaging.com/
Flywheel login:
user: flywheel
pwd: courageous-dogsWordpress login:
user: admin
pwd: HYi*%cC%N$NABC0J8YgCM%PxKind regards,
SophieAugust 25, 2020 at 3:05 pm #29097Hi Sophie,
The issue is that the theme uses a script to prevent some event propagation/bubbling (I’m not exactly sure which and where), and that prevents the input focus.
Usually I recommend a custom code where possible, but in this case the event listeners are added via native javascript, where it is nearly impossible to remove event listeners for a specific node, it would cause even more issues.
Best,
I would rather recommend placing the search shortcode outside the menu scope, or before/after the menu.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.