温馨提示:这篇文章已超过504天没有更新,请注意相关的内容是否还可用!
网站为了能让文章更好的被收藏,或是下载,吸引网友浏览,今天给大家分享一个文章底部添加收藏文章和图片形式的宣传,喜欢的朋友可以收藏一下,以放后期迷路找不到。
先看下效果图:
1、网站管理后台—》主题设置—》文章&列表—》文章页 —》 文章页 在文章内容后-插入内容 ,把下面的 php 代码复制粘贴到里面即可。
2、此代码理论上适用所有主题,只需要在合适的地方添加上代码就行
3、代码中的图片我托管在 jsdelivr+github,可直接引用,部分的文字可修改成自己的
<center><span style="color: #ef0c7e;; font-size: 15px"><strong>------本页内容已结束,喜欢请分享------</strong></span></span><br /></center> <h3 class="wp-block-zibllblock-biaoti title-theme"><strong>感谢您的来访,获取更多精彩文章请收藏本站。</strong></h3> <a href="https://li1yu.cn" target="_blank" title="更多精彩文章,请关注“三岁笔记”"> <img style="display: inline-block; width: 100%; max-width: 100%; height: auto;border-radius: 9px; -webkit-border-radius: 9px; -moz-border-radius: 9px;" src="http://li1yu.cn/wp-content/uploads/2022/02/15b96fb03d49b65c.gif"> </a>
还没有评论,来说两句吧...