Ecshop教程:首页顶部增加通栏广告位

By:Anna Scaret
1 min read2021-09-22 10:39:37

我们知道ecshop系统默认预留的广告位很少,几乎无法满足店主的要求,如何才能在首页或者其他页面增加自己想要的广告位呢?最近也是有一些高速度
主机独立ip虚拟主机的客户,问到这个问题。下面高速度
小编就讲一讲方法。下面以ecshop的默认模板为例,“在ECSHOP首页顶部增加一个通栏广告”为例进行讲解。其他模板及其他页面原理相同。默认的首页是这样的,如下图:1、进入ecshop后台 —— 广告管理 ——广告位置,点击“增加广告位”按钮。广告位名称输入“高速度
主机广告位”,广告位宽度输入“960”广告位高度输入“100”。。。。。点“确定”。
2、然后进入“广告列表”,点击“添加广告”按钮,注意,广告位置下拉框 要选择 刚才第1步里添加的那个广告位,即“高速度
主机广告位 [960x100]”。上传一张广告图片,点确定。
3、打开首页模板文件 index.dwt大概在20行,找到下面代码
<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->

<div style="width:960px;margin:5px auto;padding:0 auto;"><!-- TemplateBeginEditable name="高速度 主机广告位(宽:960px)" --><!-- TemplateEndEditable --></div>




本文地址:https://www.gaosudu.com/ecshop/20875.html