- This topic has 11 replies, 2 voices, and was last updated 7 years, 2 months ago by .
Forums › Forums › Search & Filter Pro › Search in a header, display on a archive page.
Then you would need something like this, in your child theme functions.php file:
function sandf_change_search_url_rewrite() {
if ( is_search() && ! empty( $_GET['s'] ) ) {
wp_redirect( home_url( "myresultsslug/?_sf_s=" ) . urlencode( get_query_var( 's' ) ) );
exit();
}
}
add_action( 'template_redirect', 'sandf_change_search_url_rewrite' );