1,最近群内好多新来的小伙伴在问默认模板怎么去掉首页的帮助提示信息模板,之前没注意有这个首页模板自己测试了下果不其然。最新苹果cms默认模板首页确实改为了帮助提示信息模板。如下图所示
2,如果想要去掉首页提示信息模板可以按照下面2种方法解决:
①,下载我们帮你已经提取出来历史版本的index.html文件替换即可。蓝奏云盘下载地址:https://www.lanzous.com/i8237uf 把你下载下来的压缩包名称为template 上传至网站根目录解压即可。
②复制下面代码,替换掉首页模板文件template/default_pc/html/index/index.html/内容即可。(此首页代码是没有升级之前的原首页代码,请放心使用)如果你自己保留有之前的默认模板可以自己替换。
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{$maccms.site_name}</title>
<meta name="keywords" content="{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{include file="public/include"}
</head>
<body>
{include file="public/head"}
<!-- banner 开始 -->
<div class="banner">
<div id="lbsub">
<div class="deansubdiv"><dl>
{maccms:type ids="1,2,3,4" order="asc" by="sort" id="vo1" key="key1"}
<dd class="deanddt{$key}">
<h3><a href="{:mac_url_type($vo1)}">{$vo1.type_name} </a><span></span></h3>
<div class="deansubpt">
{if condition="$key1 lt 3"}
<div class="deansubptpp">
<h5>类型</h5>
<div class="deansubptc">
<a href="{:mac_url_type($vo1,[],'show')}">全部</a>
{maccms:type parent="'.$vo1['type_id'].'" order="asc" by="sort" id="vo2" key="key2"}
<a href="{:mac_url_type($vo2,[],'show')}">{$vo2.type_name}</a>
{/maccms:type}
</div>
</div>
{/if}
<div class="deansubptpp">
<h5>地区</h5>
<div class="deansubptc">
<a href="{:mac_url_type($vo1,[],'show')}">全部</a>
{maccms:foreach name=":explode(',',$vo1.type_extend.area)" id="vo2" key="key2"}
<a href="{:mac_url_type($vo1,['area'=>$vo2],'show')}">{$vo2}</a>
{/maccms:foreach}
</div>
</div>
<div class="deansubptpp">
<h5>年代</h5>
<div class="deansubptc">
<a href="{:mac_url_type($vo1,[],'show')}">全部</a>
{maccms:foreach name=":explode(',',$vo1.type_extend.year)" id="vo2" key="key2"}
<a href="{:mac_url_type($vo1,['year'=>$vo2],'show')}">{$vo2}</a>
{/maccms:foreach}
</div>
</div>
<div class="deansubptpp">
<h5>字母</h5>
<div class="deansubptc">
<a href="{:mac_url_type($vo1,[],'show')}">全部</a>
{maccms:foreach name=":explode(',','A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,0-9')" id="vo2" key="key2"}
<a href="{:mac_url_type($vo1,['letter'=>$vo2],'show')}">{$vo2}</a>
{/maccms:foreach}
</div>
</div>
</div>
</dd>
{/maccms:type}
<dd class="deanddt5">
{maccms:type ids="5" order="asc" by="sort"}
<h3><a href="{:mac_url_type($vo,[],'show')}">{$vo.type_name}</a><span></span></h3>
{/maccms:type}
</dd>
<dd class="deanddt5">
<h3><a href="{:mac_url('label/rank')}">影视排行榜</a><span></span></h3>
</dd>
</dl></div></div>
<script type="text/javascript">
$(".deansubdiv dd").each(function(s){
$(this).hover(
function(){
$(".deansubpt").eq(s).show();
},
function(){
$(".deansubpt").eq(s).hide();
})
})
</script>
<ul class="51buypic">