如何每x个帖子添加Google Adsense? [英] How do I add Google Adsense every x posts?

查看:79
本文介绍了如何每x个帖子添加Google Adsense?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了这个示例 http://wearevanity.co ,其中每个页面都加载了新广告。

I found this example http://wearevanity.co where the new ads are loaded in every page.

除了 Tumblr 允许的最大帖子数。广告会自动调整为页面的布局,从而使其添加到博客的外观中。

In addition to the maximum number of posts allowed by Tumblr. The ads are automatically adjusted to the layout of the page, which makes them add to the look of the blog.

有人知道如何实现这一目标吗?如果是这样,请您逐步向我们解释一下?

Does anyone know how to achieve this? If so, would you please explain it to us, step by step?

推荐答案

使用 {block: Post6} {block:Post12} 显示第6和12个帖子的内容。 此处的文档

Use {block:Post6} and {block:Post12} to show content on the 6th and 12th posts. Documentation here

用法示例:

{block:Posts}
    {block:Photo}Your content blocks here{/block:Photo}
    {block:Video}Your content blocks here{/block:Video}

    {block:Post6} Your ad code here{/block:Post6}
    {block:Post12}Your ad code here{/block:Post12}
{/block:Posts}

这篇关于如何每x个帖子添加Google Adsense?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆