编辑b_article_single.html文件中的代码:

" />
软文的增加外链效果!
Google网站管理员中心使用技巧
23天,PR=1
网站推广之sitemap的制作

现在的位置: 首页建站教程>正文

Z-blog文章旁的广告代码添加方法
发表于:2010年02月10日  分类:建站教程  5 条评论  856 次阅读 

在用Z-blog程序做的博客中,如何在文章中添加广告代码呢,并使其融合在文章中呢?这样的话,广告的点击率也能提高不少哦!

告知具体步骤:

当然了,你得先申请到GG广告代码或者阿里妈妈的广告代码或者其他广告联盟的,然后登陆管理后台,找到文件管理→THEMESdefaultTEMPLATEb_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/post/19.html

效果如下:

相关日志缩略图

Z-blog文章旁的广告代码添加方法:目前有5 条留言

  1. Firm 说:

    呵呵,通用广告教程

  2. 晨静博客 说:

    哈哈我现在就在用

  3. 飘飘 说:

    晓得了哦
    谢谢

  4. 土狼妹妹 说:

    这个需要学习一下,新年愉快

给我留言




快捷键:Ctrl+Enter

留言没头像?这里教你设置头像!