Z-blog文章旁的广告代码添加方法
在用Z-blog程序做的博客中,如何在文章中添加广告代码呢,并使其融合在文章中呢?这样的话,广告的点击率也能提高不少哦!
告知具体步骤:
当然了,你得先申请到GG广告代码或者阿里妈妈的广告代码或者其他广告联盟的,然后登陆管理后台,找到文件管理→THEMES→default→TEMPLATE→b_article_single.html,编辑b_article_single.html文件中的代码:
<div class="post cate<#article/category/id#> auth<#article/author/id#>">
<div class="post-nav"><#template:article_navbar_l#><#template:article_navbar_r#></div>
<h4 class="post-date"><#article/posttime#></h4>
<h2 class="post-title"><#article/title#></h2>
<div class="post-body">
style="text-align: left; line-height: 150%; text-indent: 20pt; margin: 4.65pt 0cm 0pt; mso-para-margin-top: .3gd; mso-char-indent-count: 2.0; mso-pagination: widow-orphan" class="MsoNormal" align="left"><DIV style="FLOAT: left; MARGIN:10px 10px 2px 0px">
需要添加的GG广告代码或者阿里妈妈的广告代码或者其他广告联盟的
</div>
<#article/content#></div>
----------------------------
红色和蓝色部分的代码就是需要添加的的代码,其中蓝色加粗的代码就是需要添加的广告代码,,其中left可以改为right;解释下:MARGIN:10px 10px 2px 0px 表示广告的偏移像素,分别表示上右下左
效果如下:
»本文网址:http://www.zmking.com/chinaz/zbloggg.html ;
»除特别标注,本博客所有文章均为原创. 互联分享,尊重版权,转载请以链接形式标明本文地址 ;

