Archived topic
Search bar can't use in AMP version.
5 replies · Started by Mr Calvert on March 11, 2021
I see my search bar work in mobile version responsive. But when I install AMP version it not work and I don't see it show on my menu. Can you help me about that? How to fix that problem?
Any body help me!!!
Hi there,
you will need to disable the Navigation Search and use a hook to add in a search field.
This topic explains how:
https://generatepress.com/forums/topic/search-input-form-in-header-instead-of-overlay/#post-1644319
Can you give me code to add Navigation Search like this page I was attach in this?. I need it work like that in desktop and mobile phone
Hi there,
That's how our Navigation Search feature works by default. However, it uses javascript which isn't supported in AMP, which is why it's not displaying for you when using AMP.
As of right now, there's no way around this. You would need to integrate a non-javascript solution into the AMP version of the site.
We're working on integrating the theme with AMP more tightly, including a non-JS version of the Navigation Search.
Yes thanks you so much! Hope it will complete soon to use AMP better