Archived topic
Sticky Navigation - need to include a Hook Element / shortcode
4 replies · Started by Craig on December 1, 2020
Hi GP Support,
I have sticky navigation enabled for both mobile and web. On the site, I have a Hook Element which places a search box across the header. How would I also include this search box when sticky navigation is activated? Apologies if this is easy, I looked on forum and can not seem to figure out.
Thanks very much! Craig
Hi Craig,
With the default sticky settings, header's search form should already by inside the #site-navigation or #sticky-navigation.
That said, can you link us to the site you're working on to have an idea why it doesn't work?
Hi - I left the site address in the other text box. thx.
And apologies - the search form is generated by a plug-in we are using - it is not the native Wordpress/WooComm search form. It is in a Hooker Element, and generated via shortcode.
Thanks!
You can try changing where the search form is hooked.
Try generate_inside_navigation. This particular hook places things inside the <nav> where the sticky effect is applied.