Not changing search? Still old WordPress search
-
Hej Mikki
I’ve installed Relevanssi, and activated it, i build the index under Settings > Relevanssi.
After this i tried to visit my site and i did a search – nothing changed.
Afterwords i checked my header.php and i changed the custom search-form to<?php get_search_form() ?>
Then i made a file in my child-theme called searchform.php with:
<form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <div> <label class="screen-reader-text" for="s"><?php _x( 'Search for:', 'label' ); ?></label> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="<?php echo esc_attr_x( 'Search', 'submit button' ); ?>" /> </div> </form>
I found this code at WordPress Codex as the default html4 form.
So now my header is calling the default html4 form for the search-field, but nothing has changed yet.You can visit my website (the search field is in the main menu to the right):
https://naniweb.alco.dk/Best
Peter
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Not changing search? Still old WordPress search’ is closed to new replies.