[Support request] Ajax Menu missing on Mobile device

Home Forums Support [Support request] Ajax Menu missing on Mobile device

Home Forums Support Ajax Menu missing on Mobile device

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #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?
    Thanks

    #1577335
    David
    Staff
    Customer Support

    Hi there,

    you have the mobile header enabled. You can try hooking in the search form shortcode into:

    generate_inside_mobile_header

    Using a Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    #1579169
    troyw

    Hey David,
    I have tried this, but not working still?
    Thanks

    #1579265
    Elvin
    Staff
    Customer Support

    Hey David,
    I have tried this, but not working still?
    Thanks

    Hi,

    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. 🙂

    A wise man once said:
    "Have you cleared your cache?"

    #1579360
    troyw

    I haven’t used any code, only the Element to add a hook???

    #1580257
    David
    Staff
    Customer Support

    What did you add to the Hook ? Can you share that here ?

    #1580687
    troyw

    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.

    #1581593
    David
    Staff
    Customer Support

    But what is the Content of the Hook ? ie. inside the text field ?

    #1582047
    troyw

    There is none, I do not not know what to put in there? Where would I find the code to add to this?

    #1582323
    troyw

    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.
    Thanks

    #1582550
    David
    Staff
    Customer Support

    Thats a tricky little thing to manouvere.
    Can you change the Hook to generate_menu_bar_items

    #1583556
    troyw

    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?

    #1584062
    David
    Staff
    Customer Support

    Which versions of GP and GPP are you using ?
    generate_menu_bar_item was added to the theme in 3.0 and in the elements list in GPP 1.12

    #1585027
    troyw

    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.

    #1585032
    Leo
    Staff
    Customer Support

    Are you using the Flexbox structure?

    You can check under Customizer > General.

Viewing 15 posts - 1 through 15 (of 23 total)
  • You must be logged in to reply to this topic.