【问题标题】:how to add same code automatically如何自动添加相同的代码
【发布时间】:2013-09-12 21:49:51
【问题描述】:

我正在使用 joomla 2.5 和 k2 作为包含管理器。我有一个谷歌广告代码。我想将此代码自动添加到每篇新创建的 k2 文章的末尾。怎么办? 这是代码:

<script type="text/javascript"><!--
google_ad_client = "ca-pub-5337962148356078";
/* mobile banner */
google_ad_slot = "2022270346";
google_ad_width = 320;
google_ad_height = 50;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

【问题讨论】:

    标签: joomla2.5 joomla-k2


    【解决方案1】:

    在此处选择 JED 中可用的任意数量的 Google 广告模块之一 - http://extensions.joomla.org/extensions/ads-a-affiliates/affiliate-systems/google-ads

    安装模块后,创建一个实例,然后将其分配给与您希望展示广告的 K2 项相对应的菜单项。

    【讨论】:

      猜你喜欢
      • 2019-03-26
      • 1970-01-01
      • 2015-04-08
      • 1970-01-01
      • 1970-01-01
      • 2020-07-10
      • 1970-01-01
      • 2018-04-26
      • 1970-01-01
      相关资源
      最近更新 更多