The following code will add a span with the "search-term" class to your search results which you can use to…
add_filter( 'wpex_title', function( $title ) { if ( is_search() ) { return 'Your Custom Text'; } return $title; }, 50…
function myprefix_search_filter( $query ) { if ( ! is_admin() && $query->is_main_query() ) { if ( $query->is_search ) { $query->set('post_type', 'post');…
The following snippet can be used to alter the subheading on the search results page.
/* Sample function showing how to edit the search results featured image * * IMPORTANT: If your theme is up…
// Remove Search Results Sidebar function remove_search_sidebar( $layout ) { if ( is_search() ) { $layout = 'full-width'; } return…
.header-two .navbar-style-two .site-search-toggle { display: block }
By default if you are going to change the text of your search form in WordPress, we would recommend using…
function my_custom_search_style() { return 'blog'; } add_filter( 'wpex_search_results_style', 'my_custom_search_style' );