- This topic has 22 replies, 5 voices, and was last updated 5 years, 4 months ago by
David.
-
AuthorPosts
-
December 12, 2020 at 2:09 am #1577141
troyw
Hey guys,
I can’t seem to figure out why the Ajax Search Magnifying glass disappears when on a mobile device and home page is responsive. Any ideas how to get the search back?
ThanksDecember 12, 2020 at 6:28 am #1577335David
StaffCustomer SupportHi there,
you have the mobile header enabled. You can try hooking in the search form shortcode into:
generate_inside_mobile_headerUsing a Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
December 13, 2020 at 5:43 pm #1579169troyw
Hey David,
I have tried this, but not working still?
ThanksDecember 13, 2020 at 8:41 pm #1579265Elvin
StaffCustomer SupportHey David,
I have tried this, but not working still?
ThanksHi,
Can you provide us the code you’ve added using the hook David provided? So we could check if there are any potential issues. Thank you. 🙂
December 13, 2020 at 11:08 pm #1579360troyw
I haven’t used any code, only the Element to add a hook???
December 14, 2020 at 8:39 am #1580257David
StaffCustomer SupportWhat did you add to the Hook ? Can you share that here ?
December 14, 2020 at 2:28 pm #1580687troyw
Hey guys,
I have created a Hook and named it ‘Mobile Search’. I then chose ‘generate_inside_mobile_header’ under settings > hook and ticked ‘Execute Shortcodes’.Under display rules I set the location to ‘Entire Site’.
I followed the link https://docs.generatepress.com/article/hooks-element-overview/ This not mention any code, so I have not added any code anywhere.
December 15, 2020 at 7:06 am #1581593David
StaffCustomer SupportBut what is the Content of the Hook ? ie. inside the text field ?
December 15, 2020 at 1:19 pm #1582047troyw
There is none, I do not not know what to put in there? Where would I find the code to add to this?
December 15, 2020 at 8:17 pm #1582323troyw
OK, so I have added [wcas-search-form] and I now have a magnifying glass and Ajax Search. However, it is in the top left and I would rather place it either next to the cart or next to the Menu. Also, if I open the menu the search is invisible at the bottom of the menu. How can I make it visible?
I have searched Generatepress forums and google for this CSS but cannot find it.
ThanksDecember 16, 2020 at 1:35 am #1582550David
StaffCustomer SupportThats a tricky little thing to manouvere.
Can you change the Hook togenerate_menu_bar_itemsDecember 16, 2020 at 2:40 pm #1583556troyw
Hey guys,
I couldn’t find a hook for generate_menu_bar_items but instead found generate_inside_mobile_menu which would work, but I can’t see the search link, its invisible?December 17, 2020 at 2:32 am #1584062David
StaffCustomer SupportWhich versions of GP and GPP are you using ?
generate_menu_bar_itemwas added to the theme in 3.0 and in the elements list in GPP 1.12December 17, 2020 at 2:41 pm #1585027troyw
Hey,
As far as I am aware, I am completely up to date with Generatepress 3.02 and GP Premium 1.12.3. There is definitely no ‘generate_menu_bar_item’ under Hook.December 17, 2020 at 2:49 pm #1585032Leo
StaffCustomer SupportAre you using the Flexbox structure?
You can check under Customizer > General.
-
AuthorPosts
- You must be logged in to reply to this topic.