- This topic has 7 replies, 3 voices, and was last updated 5 years, 10 months ago by Tom.
December 11, 2014 at 1:31 pm #53901morriscountynj
I love the search in nav bar that generatepress comes with, but I don’t want to use wordpress’s default search. I actually use a free search tool that’s powered by bing made for governments (see https://search.usa.gov/search?affiliate=morriscountynjgovernment&query=test&x=0&y=0 for an example).
Is there any way that when someone does a search using the built in form, it instead takes them to the one we currently use?December 11, 2014 at 7:55 pm #54089TomLead DeveloperLead Developer
Hmm, not too sure about this one.
The search in the navigation requires specific markup so the styling all works as it should – dropping in a third party search box would most likely require customization to make all of the markup work the same, and even then it’s not guaranteed it would work.
Here’s how to remove the default search, and add your own: http://generatepress.com/forums/topic/change-search-parameters-in-navigation-menu/#post-51654December 15, 2014 at 7:32 am #54911morriscountynj
since i don’t want a woocommerce search, would i remove the woocommerce stuff and do something like:
if ( ! function_exists( ‘generate_remove_default_navigation_search’ ) ) :
add_action( ‘after_setup_theme’,’generate_remove_default_navigation_search’ );
<form role=”search” …….
</form>December 15, 2014 at 7:34 am #54912morriscountynj
i’m also not quite sure how to integrate that into the site…do i replace the default search.php with that? or do i remove search.php and searchform.php entirely, and stick this in the header?December 15, 2014 at 8:19 am #54914morriscountynj
never mind, i was able to figure it out. i added that to my custom functions.php file and edited the form action accordingly. thank you!December 15, 2014 at 10:38 am #54948TomLead DeveloperLead DeveloperDecember 22, 2014 at 10:25 am #57126Patrick Byrne
Sorry to ask such a dumb question but how do you start a new topic? As you guessed, I’m a newbie here.
PatDecember 22, 2014 at 3:09 pm #57239TomLead DeveloperLead Developer
At the bottom of each forum, you’ll see a place to create a topic.
For example, take a look at the bottom of this page: http://generatepress.com/forums/forum/general-support/
- You must be logged in to reply to this topic.