当前位置:网站首页>WordPress网站底部的自定页面(如:网站地图等)按钮美化教程
WordPress网站底部的自定页面(如:网站地图等)按钮美化教程
2022-06-09 15:47:00 【壳屋栏】
最近浏览博客,看到不少朋友这个底部的美化,我也觉得底部的这些按钮平平无奇,就想着用css设置一个样式,从而美化按钮方法,至此分享给大家。
以日主题的riplus主题为例,原来的样式是这样的:比较单一不好看
尘心网网站底部展示
优化之后是这样的:
壳屋栏网站底部展示
教程分为两步,添加 css 样式和添加 HTML 代码即可如下
1.主题设置—>顶部设置—>自定义CSS样式代码:,添加以下 CSS 代码:
/*CSS 代码网站底部按钮美化 k5l.cn*/
:root{--theme-color:#f04494;--focus-shadow-color:rgba(240,68,148,.4);--mian-max-width:1200px;}.github-badge {
display: inline-block;
border-radius: 4px;
text-shadow: none;
font-size: 12px;
color: #fff;
line-height: 15px;
margin-bottom: 5px;
}
.badge-subject {
display: inline-block;
background-color: #4d4d4d;
padding: 4px 4px 4px 6px;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.github-badge .bg-blue {
background-color: #007ec6;
}
.github-badge .bg-brightgreen {
background-color: #4dc820;
}
.github-badge .bg-blueviolet {
background-color: #8833d7;
}
.github-badge .badge-value {
display: inline-block;
padding: 4px 6px 4px 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
.github-badge .bg-orange {
background-color: orange;
}
.github-badge .bg-red {
background-color: red;
}
/*CSS 代码网站底部按钮美化结束 k5l.cn*/2、主题设置—>底部设置—>网站底部右侧自定义链接,添加以下 HTML 代码:
<!--网站底部按钮美化 html 开始 by 壳屋栏 k5l.cn-->
<div class="github-badge">
<span class="badge-subject bg-blue">
<a style="color:#fff" href="https://k5l.cn/daohang" target="_blank">文章导航</a>
</span>-
<span class="badge-subject bg-brightgreen">
<a style="color:#fff" href="https://k5l.cn/duidang" target="_blank">文章归档</a>
</span>-
<span class="badge-subject bg-green">
<a style="color:#fff" href="/about" target="_blank">关于我们</a>
</span>-
<span class="badge-subject bg-orange">
<a style="color:#fff" href="/sitemap.html" target="_blank">网站地图</a>
</span>-
<span class="badge-value bg-blueviolet">
<a style="color:#fff" href="/tag.html" target="_blank">标签地图</a>
</span>-
<span class="badge-value bg-red">
<a style="color:#fff" href="/silian.xml" target="_blank">网站死链</a>
</span>-
</div>边栏推荐
猜你喜欢
随机推荐
六月集训(第03天) —— 排序
打新债开户安全么,怎么开户
六月集训(第06天) —— 滑动窗口
R language plot visualization: use the plot visualization model to create a grid by using the classification contour line (contour line) of the entire data space and meshgrid, where the distance betwe
资深OpenStacker - 彭博、Vexxhost升级为OpenInfra基金会黄金成员
Identityserver4 getting started 1 / 2
R语言plotly可视化:使用plotly可视化模型在整个数据空间的分类轮廓线(等高线)、使用meshgrid创建一个网格,其中每个点之间的距离由mesh_size变量表示
"CSDN powder raising strategy" 11 powder raising methods, how many have you learned?
五月集训(第23天) —— 字典树
Customizing the in app keyboard in fluent
Dapr 源码解析 | 基本介绍
中台架构学习
[SEETF]Super Secure Requests Forwarder
Reconstruction essentials learning
Rapid development template based on ABP vNext
R语言plotly可视化:plotly可视化二维直方图等高线图、使用子图的方式在二维直方图等高线图的顶部和右侧添加两个变量的边缘直方图(2D Histogram Contour Subplot)
June training (day 01) - array
QScrollArea使用教程之实现可上下滑动的设置界面
面试官问我一条update语句加了多少锁?我总结了全套八股文
Today's sleep quality record 82 points







![[SEETF]Super Secure Requests Forwarder](/img/b4/f3211c28a2474973e231a69d9a4ca8.png)
