Puo's 菜园子 学习园地 http://puo.cn
易记网址: http://wordpress.cn.com

WordPress美化-底部彩色菜单

#wordpress

 

前言

此前有发过一个《WordPress美化-底部彩色菜单和运行时间》教程,本次将展示另一种底部彩色菜单样式。

效果图

效果可查看本站底部

20250805213424268

前置条件

调用Font Awesome 4图标库–参考上期内容。

详细教程

添加CSS代码

将以下CSS代码添加到您的主题的自定义CSS区域中。如果使用的主题有子主题的话也可以新建一个CSS文件。

Core Next用户添加路径:主题设置–>插入代码–>自定义CSS

此处内容需要回复后并刷新才能查看

以上为彩色菜单CSS部分,如需图标旋转,添加以下CSS内容:

此处内容需要回复后并刷新才能查看

添加HTML结构

将以下HTML代码添加到博客的 外观–>小工具–>底部小工具(左侧)–>自定义HTML(未包含站点运行时间部分,请参考上期内容)

 

<div class=”github-badge” style=”text-align: center;”>
<span class=”badge-subject bg-red” style=”border-radius: 5px;”><span class=”badge-title”><i class=”fas fa-thumbs-up” style=”animation: rotateIcon 2s linear infinite;”></i></span>
<a style=”color:#fff; border-radius: 5px;” href=”https://www.x8xx.cn/reward.html” target=”_blank” rel=”noopener”>打赏捐赠</a>
</span>
<span class=”badge-subject bg-brightgreen” style=”border-radius: 5px;”>
<span class=”badge-title”><i class=”fa fa-link” style=”animation: rotateIcon 2s linear infinite;”></i></span><a style=”color:#fff; border-radius: 5px;” href=”https://www.x8xx.cn/applink.html” target=”_blank” rel=”noopener”>友情链接</a>
</span>
<span class=”badge-subject bg-orange” style=”border-radius: 5px;”>
<span class=”badge-title”><i class=”fa fa-sitemap” style=”animation: rotateIcon 2s linear infinite;”></i></span><a style=”color:#fff; border-radius: 5px;” href=”https://www.x8xx.cn/sitemap.html” target=”_blank” rel=”noopener”>站点地图</a>
</span>
<span class=”badge-subject bg-blueviolet” style=”border-radius: 5px;”>
<span class=”badge-title”><i class=”fas fa-bullhorn” style=”animation: rotateIcon 2s linear infinite;”></i></span><a style=”color:#fff; border-radius: 5px;” href=”https://www.x8xx.cn/about.html” target=”_blank” rel=”noopener”>关于我</a>
</span>
<span class=”badge-subject bg-blue” style=”border-radius: 5px;”>
<span class=”badge-title”><i class=”fa fa-envelope” style=”animation: rotateIcon 2s linear infinite;”></i></span><a style=”color:#fff; border-radius: 5px;” href=”https://www.x8xx.cn/comment.html” target=”_blank” rel=”noopener”>留言</a>
</span>
</div>

 

结语

通过这些步骤,你的网站将显示带有Font Awesome图标的底部徽章,并显示网站的运行时间。如有疑问可联系本站。

 

打赏
谢谢谅解上文的粗糙,允许转载,请注明转载地址:Puo's 菜园子 » WordPress美化-底部彩色菜单
分享到

评论 抢沙发

做一个好的个人学习园地

主要网建,域名、集装箱物流、生活方法论的学习及研究,整理等内容

网址导航222域名店

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

登录

找回密码

注册