摘要:织梦dedecms手机搜索跳转到手机搜索模板教程_seo链接提交_织梦dedecms手机搜索跳转到手机搜索模板教程1、首先打开php文件plus/search.php,代码全部复制,然后新建一个文件名为search_m.php的文件,把search.php里面的代码全部粘贴进去,search_
织梦dedecms手机搜索跳转到手机搜索模板教程_seo链接提交_织梦dedecms手机搜索跳转到手机搜索模板教程 1、首先打开php文件plus/search.php,代码全部复制,然后新建一个文件名为search_m.php的文件,把search.php里面的代码全部粘贴进去,search_m.php还是放
织梦dedecms手机搜索跳转到手机搜索模板教程
1、首先打开php文件plus/search.php,代码全部复制,然后新建一个文件名为search_m.php的文件,把search.php里面的代码全部粘贴进去,search_m.php还是放在plus目录里面。
2、然后打开php文件include/arc.searchview.class.php复制全部代码,新建一个文件include/arc.searchview.classm.php代码粘贴进去。
3、修改一下php文件了,打开search_m.php文件,里面第13行
require_once(DEDEINC."/arc.searchview.class.php");
修改为
require_once(DEDEINC."/arc.searchview.classm.php");
4、然后打开include/arc.searchview.classm.php文件,找到第131行
$tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']
."/".$GLOBALS['cfg_df_style']."/search.htm";
修改为
$tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']
."/".$GLOBALS['cfg_df_style']."/search_m.htm";
这里 search_m.php 和 arc.searchview.classm.php 文件名字可以自己随意更改。
修改好了以后别忘了在模板文件夹中添加search_m.htm手机搜索模板文件,织梦自带了手机模板文件,只要简单的修改就可以使用了。
手机搜索效果图
本文内容主要是有关于::织梦dedecms手机搜索跳转到手机搜索模板教程和[seo链接提交]
如果您有想法通过seo排名。来获得精准流量。请添加客服咨询我们。专业的团队+AI智能让您没有后顾之忧。