Site logo

[Resolved] Move search icon to header

Home Forums Support [Resolved] Move search icon to header

Home Forums Support Move search icon to header

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #2491649
    russel

    I tried this method: https://generatepress.com/forums/topic/move-the-search-icon-to-the-header/

    But it doesn’t work at my end: https://darkfaqs.com/

    Could someone provide assistance?

    #2491818
    Leo
    Staff
    Customer Support

    Hi there,

    Not sure if I fully understand.

    What exactly are you trying to achieve?

    Can you activate the navigation search first?
    https://docs.generatepress.com/article/navigation-search/

    #2492152
    russel

    Already activated it but didn’t do anything.

    here’s the feature that I want

    [img]https://i.imgur.com/mSE4UPt.jpg[/img]

    #2492186
    Fernando
    Customer Support

    Hi Russel,

    Can you provide admin login credentials? We’ll take a closer look at the issue.

    Please use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    #2492224
    russel

    see attached credentials

    #2492228
    Fernando
    Customer Support

    Thank you!

    1. Go to Appearance > Widgets, and delete the Search Widget in the Right Sidebar. Example: https://share.getcloudapp.com/geuOygA2

    2. As for the GP Search Icon not working, can you first create a menu in Appearance > Menus? Then, assign it to your Primary Menu or Off Canvas menu. Reference: https://docs.generatepress.com/article/using-the-wordpress-menu-builder/

    If this doesn’t do anything, try #1 here: https://docs.generatepress.com/article/debugging-tips/

    #2492242
    russel

    I got all the steps working. But How do I make a functional search menu with an icon?

    #2492252
    Fernando
    Customer Support

    It’s still not appearing. Have you tried disabling all non-GP plugins?

    If not, can you try it?

    #2492280
    russel

    I disabled all plugins except for code snippets and GP premium.

    Still not working

    #2492285
    Fernando
    Customer Support

    You have this Snippet:

    add_action( 'wp', function() {
        if ( 'enable' === generate_get_option( 'nav_search' ) ) {
            remove_action( 'generate_menu_bar_items', 'generate_do_navigation_search_button' );
            add_action( 'generate_secondary_menu_bar_items', 'generate_do_navigation_search_button' );
    
            remove_action( 'generate_inside_navigation', 'generate_navigation_search' );
            add_action( 'generate_inside_secondary_navigation', 'generate_navigation_search' );
        }
    }, 20 );

    Disable or remove this to make it appear.

    #2492295
    russel

    It works now!

    Did you set up some css code or something?

    I just disabled things and it just suddenly show up on the headers.

    #2492296
    Fernando
    Customer Support

    No, I didn’t change anything on your site.

    Glad it’s appearing now!

    #2492298
    russel

    okay then.

    How do I move it?

    it is blocking the hamburger thing whenever I try to search

    #2492324
    Fernando
    Customer Support

    Where would you like to move it?

    #2492344
    russel

    If it’s possible, I want the header to be position like this

    just the header, ignore the content

    [img]https://i.imgur.com/5lbPntc.jpg[/img]

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