Home › Forums › Support › Replacing navigation bar search with Ajax search This topic has 3 replies, 2 voices, and was last updated 3 years, 7 months ago by Elvin. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts September 11, 2020 at 1:15 pm #1439847 madmanweb Hi. I have an Ajax search plugin that I want to use for my site. It’s called Ajax Search Lite – https://wordpress.org/plugins/ajax-search-lite/ It gives me the option of either a shortcode or this code to insert into the theme file: <?php echo do_shortcode('[wpdreams_ajaxsearchlite]'); ?> Any ideas on how to go about replacing the navigation search with this? September 11, 2020 at 1:33 pm #1439857 ElvinStaff Customer Support Hi, You can try this code: add_filter( 'generate_navigation_search_output', function() { return sprintf( '<div class="navigation-search">%s</div>', do_shortcode( '[your-shortcode]' ) ); } ); Let us know if it works for you. September 11, 2020 at 1:39 pm #1439860 madmanweb Yes, that did it, thanks. September 11, 2020 at 2:56 pm #1439920 ElvinStaff Customer Support Nice one! No problem. Always glad to be of any help.:) Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In