本文是针对该博客使用的HotNewsPro主题。
需要将侧边搜索小工具改为百度站内搜索的话,请查看知更鸟的文章。http://zmingcx.com/hotnews-pro-2-7-1-plus-faq.html。
将侧边搜索小工具改为google站内搜索,代码:
<h3>Google Search</h3> <div class="box_c"> <div class="search_k"> <form method="get" action="http://www.google.com/search" target="_blank"> <input type="text" name="q" size="15" maxlength="100" /> <input type="hidden" name="ie" value="utf-8" /> <input type="hidden" name="oe" value="utf-8" /> <input type="hidden" name="hl" value="zh-CN" /> <input type="submit" name="btnG" value="Google" /> <input type="hidden" name="sitesearch" value="www.xinghaixu.com" /> <input type="hidden" name="domains" value="http://www.xinghaixu.com/" /> </form> </div> </div> <div class="box-bottom"> <i class="lb"></i> <i class="rb"></i> </div>
替换HotNewspro\includes\widget目录search_g.php模版文件中的所有内容。
将上述代码中的 "www.xinghaixu.com" 改为自己的,并到小工具设置页面将“主题小工具”搜索调用侧边中。
你好 咨询你一个php搜索引擎来路的跳转代码,用百度搜索blxed 点 com 这个网站,点击后跳转到淘宝,请问他这是用什么跳转代码? 谢了