A Search Form Question:
-
Dear Mikko,
Thank you for your excellent plugin, and diligence answering support questions.
eg. url
https://www.born-again-christian.org/news/?s=looking
The search results work well, but the search input box (top right on desktops) requires visitors to click the tiny magnifying glass, just hitting the "Enter" keyboard key does nothing. This makes searching somewhat cumbersome.
How do I modify my search input code to improve/fix this?
I looked on your excellent plugin docs, and found a snippet to format the search input, but it does not appear to have changed anything. (I did flush my browser cache.)
I presently have this code in my site's child theme functions.php file;..
/**
* Relevanssi Testing
*/
add_action( 'init', function() {
remove_filter( 'relevanssi_post_ok', 'relevanssi_wpmembers_compatibility', 10 );
}, 11 );
add_shortcode('wpbsearch', 'get_search_form');
add_filter( 'get_search_form', 'rlv_modify_search_form' );
function rlv_modify_search_form( $form ) {
$form = str_replace( 'value="Search"', 'value="Find"', $form );
return $form;
}
I include this information in case it is relevant…
I use the WPMembership plugin to tame the torrent of AIbots stealing content (previously having converted the site to static format using the "Simply Static" plugin, but since that plugin does not function on membership sites I had delete it. That may have "confused" the Relevanssi set up process?)
Colin- This topic was modified 4 months, 1 week ago by .
- This topic was modified 4 months, 1 week ago by . Reason: Sp
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.