change search results page
-
I do
function add_search(){ echo '<form role="search" method="get" id="searchform" class="searchform" action="https://127.0.0.1:4001/wordpress/sample-page/support/suchergebnisse"> <div> <label class="screen-reader-text" for="s">Suchergebnisse für:</label> <input type="text" value="" name="s" data-swplive="true" data-swpengine="default" data-swpconfig="default" id="s" autocomplete="off" placeholder="Suchbegriff eingeben"> <button type="submit" id="searchsubmit"><span class="hidden">submit</span></button> </div> </form>'; } add_action('__after_navbar', 'add_search');
which correctly leads me to
https://127.0.0.1:4001/wordpress/sample-page/support/suchergebnisse/?s=
However, as soon as I enter a term, such that
https://127.0.0.1:4001/wordpress/sample-page/support/suchergebnisse/?s=term
I get 404.
the page
sample-page/support/suchergebnisse
has the default template copied to search.php:and no content added by me.
If I do
https://127.0.0.1:4001/wordpress/?s=test
I receive a working search results page (which I assume uses the default template).Please help!
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘change search results page’ is closed to new replies.