このコードの作成方法 (カスタム):
<div id="sb-search" class="sb-search">
<form>
<input class="sb-search-input" placeholder="Search.." type="text" value="" name="search" id="search">
<input class="sb-search-submit" type="submit" value="">
<span class="sb-icon-search"></span>
</form>
</div>
次のような検索結果を取得します ( wordpress ) :
<form method="get" class="searchform" action="<?php echo home_url('/'); ?>">
<div>
<input type="text" class="search" name="s" onblur="if(this.value=='')this.value='<?php _e('To search type and hit enter','typegrid'); ?>';" onfocus="if(this.value=='<?php _e('To search type and hit enter','typegrid'); ?>')this.value='';" value="<?php _e('To search type and hit enter','typegrid'); ?>" />
</div>
基本的に、クリック スライドなどを備えた素晴らしい検索ボックス用のカスタム コードを取得しました。入力できるフィールドがありますが、WordPress サイトで使用されているような結果が得られません。divを変更せずにwordpressコンテンツから結果を取得できるようにしたいので、デザインを変更しません。助けてください、私は立ち往生しています!!