织梦手机端搜索不跳转手机搜索模板,而是跳转PC端模板的BUG
织梦升级最新版本(2018.1.9)以后有个bug,就是在手机端搜索,但是搜索页不是手机端的搜索页面,是PC端的,下面说说解决的方法
方法:
找到/plus/search.php 这个文件,搜索如下代码,大概在20行左右
在这段代码的下面添加:
然后在搜索页的地方form中添加一个隐藏的input,name为mobile,value值为1,如下代码:
<input type="hidden" name="mobile" value="1" />
如图所示,操作完上面两部后手机端搜索页面已经可以自动跳转到search_m.htm页面。

|
|

