Home › Forums › Support › how to custom search function in menu navigation This topic has 7 replies, 3 voices, and was last updated 3 years, 4 months ago by David. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts November 25, 2022 at 12:45 am #2432415 bruce hello please see the pic:https://prnt.sc/OWsW8f5kZQH- the default search function in custom only has on or off . can custom it like pic ? thanks. November 25, 2022 at 1:13 am #2432455 Fernando Customer Support Hi Bruce, Yes, you can have something like that. You can use a Block Element – Hook, add a WordPress Search Block, and hook the Element to somewhere like menu_bar_items. Reference: https://docs.generatepress.com/article/block-element-hook/ Search Block Reference: https://wordpress.org/support/article/search-block/ After you’ve added it, we can help you with the custom CSS to make it look as you would prefer. November 25, 2022 at 1:33 am #2432495 bruce Hello Fernando, thank you reply me. please see this website:https://oled.baynoe.com/ please help me about custom css. thanks. November 25, 2022 at 1:44 am #2432511 Fernando Customer Support To clarify, do you want it to look like the one in the image you sent? If so, can you set the Button of the Search Block to appear inside first? Example: https://share.getcloudapp.com/9Zuzr496 You can also turn off the label if you prefer: https://share.getcloudapp.com/eDunAeZX November 25, 2022 at 3:20 am #2432633 bruce hello Fernando, i already do it like this https://share.getcloudapp.com/9Zuzr496 do you want it to look like the one in the image you sent? yes. thanks. November 25, 2022 at 5:38 am #2432878 DavidStaff Customer Support Hi there, try this CSS: .menu-bar-items .wp-block-search__inside-wrapper { background-color: var(--base); } .menu-bar-items .wp-block-search__inside-wrapper input { background: transparent; border: 0; } .menu-bar-items .wp-block-search__inside-wrapper button { padding: 0 10px; background-color: var(--contrast); color: var(--global-color-8); } And you can remove the Label in the block editor. November 25, 2022 at 7:52 am #2433362 bruce thanks,ok now. November 25, 2022 at 8:07 am #2433389 DavidStaff Customer Support Glad to hear that Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In