首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在博客帖子图片之间添加Adsense的文章广告

问在博客帖子图片之间添加Adsense的文章广告
EN

WordPress Development用户
提问于 2018-05-10 14:27:51
回答 2查看 306关注 0票数 0

我的博客文章只包含像这样的图片

代码语言:javascript
复制
<img class="aligncenter wp-image-567 size-full" src="..myimage_src_01.." alt="" width="960" height="960" /><br/>
<img class="aligncenter wp-image-567 size-full" src="..myimage_src_02.." alt="" width="960" height="960" /><br/>
<img class="aligncenter wp-image-567 size-full" src="..myimage_src_03.." alt="" width="960" height="960" /><br/>
<img class="aligncenter wp-image-567 size-full" src="..myimage_src_04.." alt="" width="960" height="960" /><br/>

我有Google Adsense In-Article Ads的脚本代码

代码语言:javascript
复制
 <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins .....xxx....data-ad-layout="in-article"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>

假设我在我的博客文章中有9幅图片,我想在3幅图片的每个结尾展示这篇文章中的广告。

像这样..。

代码语言:javascript
复制
<image>
<image>
<image>
<ads>
<image>
<image>
<image>
<ads>
<image>
<image>
<image>
<ads>

我尝试过广告插入插件,但它只能选择添加adsafter paragraph。

我怎样才能把我的帖子格式化成这样??

EN

回答 2

WordPress Development用户

发布于 2018-05-10 14:47:01

可能高级版本有选择。否则,在循环中插入与Adsense相关的代码可能是另一种解决方案。

票数 1
EN

WordPress Development用户

发布于 2018-05-10 19:00:25

在编辑器中单击图像时,您可能会看到图像点亮的选择。参见本文:https://en.support.wordpress.com/images/image-alignment/

票数 0
EN
页面原文内容由WordPress Development提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://wordpress.stackexchange.com/questions/303234

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档