Sakurairo主题个性化(三):页尾公安备案信息添加+网站底部计时+漂亮小徽章

avatar
作者
筋斗云
阅读量:19

本章内容的实现需要一部分代码,我会贴在对应部分。

文章部分内容有参考GAATTC的博客和雪之梦技术驿站在腾讯云中的文章

1. 在wordpress后台的更改位置

备案链接网站是什么_网站备案 链接_备案链接网站有哪些

选择全局设置->页尾选项中,再找到页尾代码设置部分(分为页尾信息和页尾附加代码两部分)。

2. 详细设置过程

1.首先设置页尾的公安备案信息,插入代码如下所示:

网站备案 链接_备案链接网站有哪些_备案链接网站是什么津公网安备 12010902000170号(你自己的备案号) | 网站备案/许可证号 津ICP备20004397号-1(你自己的许可证号)

2. 现在设置网站底部计时效果,需要先在页尾附加代码部分添加如下代码:


然后在页尾信息部分中添加如下代码:

3. 最后来设置GitHub中常见的小徽章

具体徽章如下所示

备案链接网站有哪些_网站备案 链接_备案链接网站是什么

这样的徽章本质上就是一种svg格式的矢量图标,相对于png格式来讲,矢量图形的优势就是不论怎样缩放,都不会失真。

这里附上图片格式的转换网页,大家可以自己试一试。

在网页中插入徽章,所需要的格式为:

图片文字说明

核心部分为获取正确的图片源地址,下面以在Shields.io网站中的图片源地址格式给出代码:

https://shields.io/badge/style-plastic-green?logo=appveyor&style=plastic

其中,徽章颜色有如下可选项

网站备案 链接_备案链接网站有哪些_备案链接网站是什么

logo可以在这里(simple icons)选,当然,如果想要自定义一个logo,logo=后面的内容需要粘贴base64为图像编码(可以通过站长之家来获取)。

例如我网页底部的徽章

它对应的代码如下所示:

https://img.shields.io/badge/%E6%9C%8D%E5%8A%A1%E5%99%A8-%E8%85%BE%E8%AE%AF%E4%BA%91-green?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAGU2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQ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rhgiegxZ5IBC5frCG+i0Xs69CKFBsblmaSmg5pAoaakAASBYw8FGLIJdnh3XXF7RPjC8b3knedt3rfTtfZa9689t4t28/yJjU4SQ+ZCOoFLclR3tCH5g1V5COPiCAWMAuIRASnaCEBdQQFtbQ9mE7WpB2HvbCPRPzNlpQApI2NPWUIBIVWQ51ff9Zg/eldn9Rvv6/MD+p9LtrVMuDmzdsufaqu5YRtrYwhzgOOkro+5Db3KOrT5pWVNsPcPVctexwBKSrZ4YnGNplW3LilLUffdlygTyZZ8smP2IKLRshtE6viVz9Q4r7OUK1pzJU+3dQwcWljGLW2zg166/WKqkJrHBUIGZ+2wPBi0e4n3bZnsz3mBNpI6hgECaoaBFCz4BxJSUS+b5ltqS2310b31qUT+oQFh3V3+xynHNDp/H8k/GNOdRwAHCSiiINEFHGQiCIOElHEQSKKOEhEEQeJKOIgEUUcJKKITiPi97///eDOkvVh4P8A99RYSsBBaAkAAAAASUVORK5CYII=&style=plastic

style有如下可选项:

备案链接网站是什么_网站备案 链接_备案链接网站有哪些

3. 最终实现效果

备案链接网站是什么_备案链接网站有哪些_网站备案 链接

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!