当前您的表单如下所示:
<form id="search-query">
<p class="in-english"><a href="http://localhost/hermodswp/?page_id=76">Information in English</a></p>
<div class="search-box">
<div>
<label class="screen-reader-text" for="s"></label>
<input type="text" value="sdf" name="s" id="s" style="width: 293px;">
<input type="submit" id="searchsubmit" value="Sök">
</div>
</div>
</form>
尝试调整提交操作以指向您的home\\u url()。
action="<?php echo home_url(); ?>"
您可以在Chrome中编辑页面,以查看其是否正常工作。
<form role="search" id="search-query" method="get" action="http://hermodsgymnasiet-develop.kaigan.modxcloud.com/">
<p class="in-english"><a href="http://localhost/hermodswp/?page_id=76">Information in English</a></p>
<div class="search-box">
<div>
<label class="screen-reader-text" for="s"></label>
<input type="text" value="" name="s" id="s" style="width: 293px;">
<input type="submit" id="searchsubmit" value="Sök">
</div>
</div>
</form>