WordPress常用的文字广告、图片广告和联盟广告代码的使用方法

2021年4月8日09:20:17 发表评论 466

WordPress常用的文字广告、图片广告和联盟广告代码的使用方法云服务器怎么样?云服务器值不值得购买?云服务器好不好?

WordPress常用的文字广告、图片广告和联盟广告代码的使用方法

所有的wordpress主题都有自定义广告位的功能,部分站长用户不明白怎么使用,带大家学习一下如何自定义自己的文字广告、图片广告和联盟广告。

文字广告

下面的是最常见的文字广告代码:

<span class=”tag”>&lt;a</span> <span class=”atn”>href</span><span class=”pun”>=</span><span class=”atv”>”链接地址”</span><span class=”tag”>&gt;</span><span class=”pln”>显示的文字</span><span class=”tag”>&lt;/a&gt;</span>

1 < span class = “tag” > & lt ; a < / span > < span class = “atn” > href < / span > < span class = “pun” >= < / span > < span class = “atv” > “链接地址” < / span > < span class = “tag” > & gt ; < / span > < span class = “pln” >显示的文字 < / span > < span class = “tag” > & lt ; / a & gt ; < / span >

文字链接在新窗口打开的代码:

<span class=”tag”>&lt;a</span> <span class=”atn”>href</span><span class=”pun”>=</span><span class=”atv”>”链接地址”</span> <span class=”atn”>target</span><span class=”pun”>=</span><span class=”atv”>”_blank”</span><span class=”tag”>&gt;</span><span class=”pln”>显示的文字</span><span class=”tag”>&lt;/a&gt;</span>

1 < span class = “tag” > & lt ; a < / span > < span class = “atn” > href < / span > < span class = “pun” >= < / span > < span class = “atv” > “链接地址” < / span > < span class = “atn” > target < / span > < span class = “pun” >= < / span > < span class = “atv” > “_blank” < / span > < span class = “tag” > & gt ; < / span > < span class = “pln” >显示的文字 < / span > < span class = “tag” > & lt ; / a & gt ; < / span >

链接添加nofollow的代码:

<span class=”tag”>&lt;a</span> <span class=”atn”>href</span><span class=”pun”>=</span><span class=”atv”>”链接地址”</span> <span class=”atn”>target</span><span class=”pun”>=</span><span class=”atv”>”_blank”</span> <span class=”atn”>rel</span><span class=”pun”>=</span><span class=”atv”>”nofollow”</span><span class=”tag”>&gt;</span><span class=”pln”>显示的文字</span><span class=”tag”>&lt;/a&gt;</span>

1 < span class = “tag” > & lt ; a < / span > < span class = “atn” > href < / span > < span class = “pun” >= < / span > < span class = “atv” > “链接地址” < / span > < span class = “atn” > target < / span > < span class = “pun” >= < / span > < span class = “atv” > “_blank” < / span > < span class = “atn” > rel < / span > < span class = “pun” >= < / span > < span class = “atv” > “nofollow” < / span > < span class = “tag” > & gt ; < / span > < span class = “pln” >显示的文字 < / span > < span class = “tag” > & lt ; / a & gt ; < / span >

图片广告

下面的是最常见的图片广告代码:

<span class=”tag”>&lt;a</span> <span class=”atn”>href</span><span class=”pun”>=</span><span class=”atv”>”链接地址”</span><span class=”tag”>&gt;&lt;img</span> <span class=”atn”>src</span><span class=”pun”>=</span><span class=”atv”>”图片地址”</span><span class=”tag”>&gt;&lt;/a&gt;</span>

1 < span class = “tag” > & lt ; a < / span > < span class = “atn” > href < / span > < span class = “pun” >= < / span > < span class = “atv” > “链接地址” < / span > < span class = “tag” > & gt ; & lt ; img < / span > < span class = “atn” > src < / span > < span class = “pun” >= < / span > < span class = “atv” > “图片地址” < / span > < span class = “tag” > & gt ; & lt ; / a & gt ; < / span >

图片链接在新窗口打开的代码:

<span class=”tag”>&lt;a</span> <span class=”atn”>href</span><span class=”pun”>=</span><span class=”atv”>”链接地址”</span> <span class=”atn”>target</span><span class=”pun”>=</span><span class=”atv”>”_blank”</span><span class=”tag”>&gt;&lt;img</span> <span class=”atn”>src</span><span class=”pun”>=</span><span class=”atv”>”图片地址”</span><span class=”tag”>&gt;&lt;/a&gt;</span>

1 < span class = “tag” > & lt ; a < / span > < span class = “atn” > href < / span > < span class = “pun” >= < / span > < span class = “atv” > “链接地址” < / span > < span class = “atn” > target < / span > < span class = “pun” >= < / span > < span class = “atv” > “_blank” < / span > < span class = “tag” > & gt ; & lt ; img < / span > < span class = “atn” > src < / span > < span class = “pun” >= < / span > < span class = “atv” > “图片地址” < / span > < span class = “tag” > & gt ; & lt ; / a & gt ; < / span >

链接添加nofollow的代码:

<span class=”tag”>&lt;a</span> <span class=”atn”>href</span><span class=”pun”>=</span><span class=”atv”>”链接地址”</span> <span class=”atn”>target</span><span class=”pun”>=</span><span class=”atv”>”_blank”</span> <span class=”atn”>rel</span><span class=”pun”>=</span><span class=”atv”>”nofollow”</span><span class=”tag”>&gt;&lt;img</span> <span class=”atn”>src</span><span class=”pun”>=</span><span class=”atv”>”图片地址”</span><span class=”tag”>&gt;&lt;/a&gt;</span>

1 < span class = “tag” > & lt ; a < / span > < span class = “atn” > href < / span > < span class = “pun” >= < / span > < span class = “atv” > “链接地址” < / span > < span class = “atn” > target < / span > < span class = “pun” >= < / span > < span class = “atv” > “_blank” < / span > < span class = “atn” > rel < / span > < span class = “pun” >= < / span > < span class = “atv” > “nofollow” < / span > < span class = “tag” > & gt ; & lt ; img < / span > < span class = “atn” > src < / span > < span class = “pun” >= < / span > < span class = “atv” > “图片地址” < / span > < span class = “tag” > & gt ; & lt ; / a & gt ; < / span >

只显示图片,不加链接的代码:

<span class=”tag”>&lt;img</span> <span class=”atn”>src</span><span class=”pun”>=</span><span class=”atv”>”图片地址”</span><span class=”tag”>&gt;</span>

1 < span class = “tag” > & lt ; img < / span > < span class = “atn” > src < / span > < span class = “pun” >= < / span > < span class = “atv” > “图片地址” < / span > < span class = “tag” > & gt ; < / span >

联盟广告

几乎所有联盟广告的代码都是JS代码,包括常见的百度联盟、阿里妈妈、谷歌广告联盟、京东联盟、携程联盟等等,你只要复制这些联盟广告代码到广告位的输入框中即可。

WordPress常用的文字广告、图片广告和联盟广告代码的使用方法

来源链接:https://www.vpssz.com/

本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

郑重声明:VPS主机评测仅提供资料收集及VPS云主机信息推介,不提供任何VPS云主机及代购业务!