Site logo

[Support request] Show only search icon in navigation

Home Forums Support [Support request] Show only search icon in navigation

Home Forums Support Show only search icon in navigation

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #2556240
    Liran

    Hey there,

    Is it possible to show only the search icon in the menu, without the search box or the close icon?

    Here is an example

    Thanks!

    #2556330
    David
    Staff
    Customer Support

    Hi there,

    that particular site is using a 3rd party search service.

    For a simple search modal, we have just added that to GP 3.3 which is in Alpha release:

    https://generatepress.com/generatepress-3-3-0/

    See here for screenshot:

    https://generatepress.com/a-new-navigation-search/

    #2556526
    Liran

    Hey David,

    I already use a 3rd party search service and I successfully followed their Site Search Integration instructions.

    Now I just need a simple, static search icon that users can click on.

    #2556619
    David
    Staff
    Customer Support
    #2556655
    Liran

    Thanks!

    Any idea why the cursor doesn’t change to a hand pointer when I hover over the icon?

    #2557099
    David
    Staff
    Customer Support

    Because the clickable element isn’t a link – it will need some CSS to make it so.
    Can i see your site with the icon in place? Then i can see what ID/Classes to style.

    #2564647
    Liran

    Hey David,

    Here, have a look.

    #2564825
    David
    Staff
    Customer Support

    Try adding this CSS:

    #grow-me-search {
        cursor: pointer;
    }
    #2565051
    Liran

    Perfect 🙂

    Appreciate the support.

    #2565733
    David
    Staff
    Customer Support

    You’re welcome

    #2565787
    Ravi Dixit

    Hey, David!

    How can I follow this and add a search icon in my custom header creating using the Elements?

    #2566281
    David
    Staff
    Customer Support

    Hi there,

    this topic was related to a 3rd party search option. What would your requirement be ?

    #2566476
    Ravi Dixit

    I am using GeneratePress and created by navigation bar using Block Element.

    I just want to add a search icon at the right side in the Nav bar so users can search, that’s it!

    #2566687
    Fernando
    Customer Support

    Hi Ravi,

    You can try adding a WordPress Search Block to your Block Element.

    Reference: https://wordpress.org/documentation/article/search-block/

    #2566903
    Ravi Dixit

    I already did, it is adding an entire search field along with the search icon

    I only need a search icon.

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