一款狐狸很早的zibll子比主题页脚样式,个人审美觉得这个页脚样式还不错,整体布局进行微调和修改,删除大量冗余代码以及seo不友好的布局内容看起来更加清爽大气,喜欢的自行部署!
代码常规分两个部分,一个PHP代码,一个CSS代码,跟着我的教程操作,小白也能得心应手。
PHP代码
首先我们进入网站文件管理,并找到主题底部代码PHP文件,也就是footer.php文件。我们先到/wp-content/themes/zibll/footer.php,找到下面的代码
<footer class="footer">
<?php if (function_exists('dynamic_sidebar')) {
dynamic_sidebar('all_footer');
}?>
<div class="container-fluid container-footer">
<?php do_action('zib_footer_conter');?>
</div>
</footer>
下面美化后的页脚代码把上面这段代码整段替换,覆盖掉
<svg class="waves" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 24 150 28"
preserveAspectRatio="none" shape-rendering="auto" style="bottom: 4px;">
<defs>
<path id="gentle-wave" d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z"></path>
</defs>
<g class="parallax">
<use xlink:href="#gentle-wave" x="48" y="0" fill="var(--float-btn-bg)"></use>
<use xlink:href="#gentle-wave" x="48" y="3" fill="var(--main-shadow)"></use>
<use xlink:href="#gentle-wave" x="48" y="5" fill="var(--main-border-color)"></use>
<use xlink:href="#gentle-wave" x="48" y="7" fill="var(--main-bg-color)"></use>
</g>
</svg>
<div id="colophon" class="footer" style="padding: 15px;">
<div id="Onecad_footer_ys2" class="footer-navi">
<div id="huliku_title" class="huliku_wrapper">
<div class="about widget Onecad_fl">
<div class="title">
<div class="huliku_beat_heart">
<div class="huliku_beat_left"></div>
<div class="huliku_beat_right"></div>
</div>
<h3>千里网 • WWW.BABC.CC</h3>
</div>
<div class="title-h-left "><b ><?php bloginfo('name');?></b></div>
<p style="text-indent:2em;">千里网资源库整合网课学习资料、AI教程应用分享平台。本网专注网课学习资料、AI教程运用技巧、网站源码下载等服务,「知毫厘行千里」每天解锁新知识积少成多学以致用!!</p>
</div>
<div class="navis Onecad_fl hide_sm">
<div class="navi">
<h2 class="title">关于我们</h2>
<ul>
<li>
<a href="/privacy">
隐私协议
</a>
</li>
<li>
<a href="/yhxy">
用户协议
</a>
</li>
<li>
<a href="/mzsm">
免责声明
</a>
</li>
<li>
<a href="">
联系我们
</a>
</li>
<li>
</ul>
</div>
<div class="navi">
<h2 class="title">特色功能</h2>
<ul>
<li>
<a href="">
社区圈
</a>
</li>
<li>
<a href="">
推广返佣
</a>
</li>
<li>
<a href="">
待开发..
</a>
</li>
<li>
<a href="">
网站地图
</a>
</li>
<li>
</ul>
</div>
<div class="navi">
<h2 class="title">商务服务</h2>
<ul>
<li>
<a href="">
会员服务
</a>
</li>
<li>
<a href="">
广告服务
</a>
</li>
<li>
<a href="">
其他服务
</a>
</li>
<li>
<a href="">
友情链接
</a>
</li>
</ul>
</div>
</div>
<div class="ewms widget fr hide_sm">
<ul class="huliku_clearfix">
<li>
<div>
<div class="Onecad_footer_ico"><i class="thumb "
style="background-image:url(https://img.alicdn.com/imgextra/i1/2210123621994/O1CN0123vfxk1QbIhKWfcYq_!!2210123621994.png)"></i>
</div>
<h4>AI知识</h4>
</div>
<div class="ewm-content Onecad_hide ewm-weibo">
<!--<div class="ewm-main clearfix">
<div class="thumb-div Onecad_fl">
<i class="thumb"
style="background-image:url(https://www.freeimg.cn/i/2024/03/07/65e95b587d030.png);">
</i>
</div>
<h4>
这是第一个的文字
</h4>
<h4>
<a href="">
这是第一个下面的文字
</a>
</h4>
</div>-->
</div>
</li>
<li>
<div>
<div class="Onecad_footer_ico"><i class="thumb "
style="background-image:url(https://img.alicdn.com/imgextra/i2/2210123621994/O1CN01whhWGM1QbIhKiSEc2_!!2210123621994.png)"></i>
</div>
<h4>网页美化</h4>
</div>
<div class="ewm-content Onecad_hide ewm-weibo">
<!--<div class="ewm-main clearfix">
<div class="thumb-div Onecad_fl"> <i class="thumb"
style="background-image:url(https://www.babc.cc/wp-content/uploads/2025/07/4-2.jpg);"></i>
</div>
<h4>这是第二个的文字</h4>
<h4><a href="" target="_blank">这是第二个下面的文字</a></h4>
</div>-->
</div>
</li>
<li>
<div>
<div class="Onecad_footer_ico"><i class="thumb "
style="background-image:url(https://img.alicdn.com/imgextra/i1/2210123621994/O1CN01VKBRQM1QbIhKiQ5YE_!!2210123621994.png)"></i>
</div>
<h4>资源下载</h4>
</div>
<div class="ewm-content Onecad_hide ewm-weibo">
<!--<div class="ewm-main clearfix">
<div class="thumb-div Onecad_fl"> <i class="thumb"
style="background-image: url(https://www.freeimg.cn/i/2024/03/07/65e95b15740a6.png);"></i>
</div>
<h4>这是第三个的文字</h4>
<h4><a href="">这是第三个下面的文字</a></h4>
</div>-->
</div>
</li>
</ul>
<div class="like">
<strong><?php $count_posts = wp_count_posts();echo $published_posts =$count_posts->publish;?></strong></br>
<h4 class="my-face" style="font-size:13px;margin:0 5px 2px 5px;color:#797979;margin-bottom: 10px;">精品资源等您来关注</h4>
</div>
</div>
</div>
<center>
<div class="foot-copyright">
<div class="huliku_wrapper">
<p class="foot-copyright-fl fla">Copyright © 2024 - 2025 <a href="/"
style="font-size:12px;"><?php bloginfo('name');?></a> All Rights Reserved
<a rel="nofollow"target="_blank" href="" style="font-size:12px;"></a>技术支持.
<img src="https://www.babc.cc/wp-content/themes/zibll8/pic/beian.png" width="12px" style="margin-bottom: 2px;">网安备:<a rel="nofollow" target="_blank" href="http://www.beian.gov.cn/" style="font-size:12px;">皖ICP备2025090521号-1</a> ・ <img src="https://moxingbk.com/demo/ba.svg" width="14px" style="margin-bottom: 2px;">备案号:
<a rel="nofollow" target="_blank" href="http://www.beian.gov.cn/" style="font-size:12px;">皖ICP备2025090521号-1</a>
</p>
</center>
</div>
</div>
</div>
</div>
<link rel="stylesheet" href="https://www.babc.cc/wp-content/themes/zibll8/css/ueo.css" type="text/css">
如果不想覆盖掉子比自带的主题页脚,那么可以手动隐藏,避免后期子比主题更新更好的页脚样式可以自由切换。隐藏代码(<!-- **-->),完毕!!
css代码
没有动手能力的css代码一般直接丢入主题设置自定义css代码里面就可以,代码量较多建议文件调用比较妥。
[hidecontent type="payshow"]
/*底部页脚css*/
.footer .footer-navi a:hover {
color: #ff4500;
font-weight: 500;
}
.footer-navi a {
color: #949498;
font-size: 14px;
}
.footer-navi .ewms .ewm-content.ewm-douyin .ewm-main .thumb-div {
width: 160px;
}
.footer-navi .ewms .ewm-main {
padding: 20px;
text-align: left;
}
.footer-navi .ewms .ewm-main .Onecad_fl {
float: left;
}
.footer-navi .ewms .ewm-main .fr {
float: right;
}
.footer-navi .ewms .ewm-main .thumb-div {
width: 120px;
margin-right: 30px;
}
.footer-navi .ewms .ewm-main .thumb {
padding-top: 100%;
}
.footer-navi .ewms .ewm-main h4 {
font-size: 14px;
font-weight: normal;
color: #333;
line-height: 1.714;
margin-top: 4px;
}
.footer-navi .ewms .ewm-main h4 span {
color: #47c333;
}
.footer-navi .ewms .ewm-main a {
color: #ff3401;
}
.footer-navi .ewms .ewm-main a:hover {
color: #ff5c00;
}
.footer-navi .ewms .ewm-main h5 {
font-weight: normal;
font-size: 12px;
color: #888;
line-height: 20px;
}
.footer-navi .ewms .ewm-douyin .ewm-main {
padding-left: 0;
padding-right: 0;
text-align: center;
}
.footer-navi .ewms .ewm-douyin .ewm-main .thumb-div {
margin: 0 auto;
}
.home_row {
margin-top: -16px;
}
.home_row_0 {
margin-top: -32px;
}
.home_row_0 .wrapper,
.home_row_0 .wrapper .box {
width: 100% !important;
box-shadow: none;
}
.box {
box-shadow: none;
}
.waves-box {
position: relative;
text-align: center;
background: linear-gradient(60deg, #05f 0%, #0bf 100%);
color: white;
}
.waves-inner {
height: 360px;
width: 100%;
margin: 0;
padding-top: 115px;
}
.waves-inner h2 {
font-size: 2em;
font-weight: bold;
letter-spacing: 2px;
}
.waves-inner p {
padding: 10px;
margin-bottom: 30px;
}
.waves-inner a {
padding: 10px 28px;
font-size: 1.2em;
background: #fff;
color: #09f;
font-weight: bold;
border-radius: 50px;
}
.waves-inner a:hover {
box-shadow: 0 5px 10px #05f;
}
.waves {
position: relative;
width: 100%;
height: 15vh;
margin-bottom: -8px;
min-height: 50px;
max-height: 80px;
}
.parallax>use {
animation: move-forever 25s cubic-bezier(.55, .5, .45, .5)infinite;
}
.parallax>use:nth-child(1) {
animation-delay: -2s;
animation-duration: 7s;
}
.parallax>use:nth-child(2) {
animation-delay: -3s;
animation-duration: 10s;
}
.parallax>use:nth-child(3) {
animation-delay: -4s;
animation-duration: 13s;
}
.parallax>use:nth-child(4) {
animation-delay: -5s;
animation-duration: 20s;
}
@keyframes move-forever {
0% {
transform: translate3d(-90px, 0, 0);
}
100% {
transform: translate3d(85px, 0, 0);
}
}
@media (max-width:768px) {
.waves {
height: 40px;
min-height: 40px;
}
.waves-inner {
padding-top: 50px;
}
.mg-b {
margin-bottom: 0;
}
.home_row {
padding: 0px !important;
}
}
.apply_link {
float: right;
}
.footer-navi .ewms .like strong:after {
content: "+";
position: absolute;
font-size: 28px;
background-image: linear-gradient(90deg, #13adff 0, #3385ff 50%, #3385ff);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
}
#huliku_title {
margin: 0 auto;
max-width: calc(var(--mian-max-width) + 80px);
margin-bottom: 20px;
}
#huliku_stat {
margin-bottom: -35px;
box-shadow: 0 0 10px var(--main-shadow);
}
#huliku_stat .siteCount .cover {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .3);
}
#huliku_stat .siteCount .huliku_wrapper {
position: relative;
z-index: 10;
margin: 0 auto;
width: 100%;
max-width: 85%;
}
#huliku_stat .siteCount ul {
display: flex;
}
#huliku_stat .siteCount ul li {
margin: 0 auto;
width: 100%;
color: #fff;
text-align: center;
}
#huliku_stat .siteCount ul li span {
font-size: 48px;
font-family: Arial;
}
#huliku_stat .p-wh {
font-weight: 700;
}
.huliku_link_span {
padding: 6px;
border-radius: 5px;
background-color: #0088ff;
color: #fff;
text-align: center;
}
.join {
padding-top: 20px;
color: #fff;
letter-spacing: .5px;
font-weight: 600;
font-size: 15px;
}
.marquee-box {
position: absolute;
overflow: hidden;
width: 100%;
z-index: -1;
}
.marquee {
width: 8000%;
height: 60px;
}
/*.wave-box {
position:relative;
height:30px;
}
.wave-list-box {
float:left;
}
.wave-list-box ul {
float:left;
overflow:hidden;
height:60px;
zoom:1;
}
.wave-list-box ul li {
float:left;
width:100%;
height:60px;
list-style:none;
line-height:30px;
}*/
.foot-copyright p {
margin-bottom: 18px;
width: 100%;
text-align: center;
font-size: 12px;
}
.fla {
float: left;
}
#Onecad_footer_ys2 .huliku_wrapper:after,
#Onecad_footer_ys2 .huliku_wrapper:before {
clear: both;
display: block;
visibility: none;
height: 0;
content: "";
line-height: 0;
}
.huliku_clearfix:after,
.huliku_clearfix:before {
clear: both;
display: table;
visibility: none;
height: 0;
content: "";
line-height: 0;
}
a,
a:active,
a:visited {
text-decoration: none;
transition: all .2s;
}
.thumb {
display: block;
width: 100%;
height: 0;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-color: transparent;
position: relative;
overflow: hidden;
transition: all .2s;
}
#Onecad_footer_ys2 .widget ul li {
box-sizing: border-box;
padding-top: 5px;
font-size: 13px;
}
.Onecad_footer_ico {
margin-bottom: 10px;
}
.Onecad_footer_ico i {
margin: auto;
width: 48px;
height: 48px;
}
.Onecad_hide {
visibility: hidden;
opacity: 0;
transition: all .5s;
}
.hidden {
display: none !important;
}
.footer-navi {
position: relative;
z-index: 20;
display: none;
background-size: cover;
line-height: 1.9286;
}
.footer-navi .huliku_wrapper {
display: flex;
overflow: visible;
}
.footer-navi a {
font-size: 14px;
}
.footer-navi a:hover {
color: #fff;
}
.footer-navi .title {
margin-bottom: 17px;
font-weight: 400;
font-size: 16px;
color: var(--main-color);
line-height: 1.38889;
}
.footer-navi .widget {
position: relative;
box-sizing: border-box;
}
.footer-navi .about {
margin: -8px 12px 10px;
}
.footer-navi .navis {
display: box;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
box-sizing: border-box;
width: 100%;
justify-content: space-between;
flex-wrap: nowrap;
justify-content: space-around;
}
.footer-navi .ewms {
margin: 0 auto;
}
.footer-navi .ewms:after,
.footer-navi .ewms:before {
right: auto;
left: 0;
}
.footer-navi .ewms:before {
left: 1px;
}
sup {
position: absolute;
top: 105px;
right: 95px;
color: #3385ff;
font-size: 35px;
}
.footer-navi .ewms .like {
text-align: center;
}
.footer-navi .ewms .like strong {
background-image: linear-gradient(90deg, #13adff 0, #3385ff 50%, #3385ff);
font-weight: 700;
font-size: 54px;
line-height: .9;
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
}
.footer-navi .ewms .like h3 {
font-weight: 400;
font-size: 14px;
line-height: 1.1;
}
.footer-navi .ewms ul {
margin: 0 20px 15px;
text-align: center;
}
.footer-navi .ewms li {
position: relative;
float: left;
display: inline;
box-sizing: border-box;
margin-top: 0;
width: 33.3333%;
line-height: 1.3;
}
.footer-navi .ewms li:hover .ewm-content {
bottom: 107%;
visibility: visible;
opacity: 1;
}
.footer-navi .ewms .ico {
font-size: 46px;
cursor: pointer;
transition: all .2s;
}
.footer-navi .ewms .ico:hover {
color: #fff;
}
.footer-navi .ewms .ico i {
display: block;
}
.footer-navi .ewms h4 {
font-size: 13px;
font-weight: normal;
margin: 0;
}
.footer-navi .ewms .ewm-content {
position: absolute;
bottom: 200%;
left: -45%;
box-sizing: border-box;
width: 330px;
background: #fff;
box-shadow: 0 16px 32px 0 rgba(0, 0, 0, .1);
transform: translate(-22%);
}
.footer-navi .ewms .ewm-content:before {
position: absolute;
top: 100%;
left: 55%;
display: block;
margin-left: -6px;
width: 0;
height: 0;
border-top: 6px solid #fff;
border-right: 6px solid transparent;
border-left: 6px solid transparent;
content: "";
}
.footer-navi .ewms .ewm-content.ewm-douyin {
width: 400px;
}
.footer-navi .ewms .ewm-douyin .ewm-douyin-1,
.footer-navi .ewms .ewm-douyin .ewm-douyin-2 {
width: 50%;
}
.footer-navi .ewms .ewm-douyin .ewm-douyin-1 {
position: relative;
}
.footer-navi .ewms .ewm-douyin .ewm-douyin-1:after {
position: absolute;
top: 10%;
right: 0;
display: block;
width: 1px;
height: 80%;
background: #f3f3f3;
content: "";
}
.footer-navi .bands ul {
display: flex;
margin: 0 -8px 0 -7px;
align-content: space-between;
}
.footer-navi .bands ul li {
box-sizing: border-box;
padding: 0 8px 15px 7px;
width: 50%;
}
.footer-navi .bands .band {
padding-top: 52px;
border-radius: 3px;
background-color: #42424d;
transition: all .2s;
}
.footer-navi .bands .band:after {
position: absolute;
top: 0;
right: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .5);
content: "";
transition: all .2s;
}
.footer-navi .bands .band:hover {
background-color: #24242d;
}
.footer-navi .bands .band:hover:after {
background: 0 0;
}
.footer-navi .qqgroup {
width: 100%;
}
.footer-navi .qqgroup a {
display: block;
margin: 0 auto;
width: 220px;
height: 52px;
border-radius: 3px;
background: #222228;
text-align: center;
line-height: 52px;
}
.huliku_footer {
background: #121212;
color: var(--footer-color);
padding: 30px;
font-size: 13px;
}
.huliku_footer .copyright {
color: #7f7f7f;
text-align: center;
font-size: 12px;
line-height: 1.5;
}
.huliku_footer .copyright .asline {
display: block;
font-style: normal;
}
.huliku_footer .copyright p {
padding: .5em 0;
border-radius: 4px;
}
.huliku_footer .copyright a {
color: #7f7f7f;
}
.footer-navi .navis .navi {
text-align: center;
flex: 1;
}
.huliku_footer .copyright a:hover {
color: #acacac;
}
.huliku_footer .Onecad_fl h2 a {
font-size: 26px;
}
@media all {
.footer:hover .footer-colors {
animation-play-state: running;
}
}
@keyframes animate-colors {
0% {
background-position: 0 0;
}
to {
background-position: 7000px 0;
}
}
.huliku_beat_heart {
width: 50px;
animation: beat .5s linear infinite alternate;
}
@keyframes beat {
0% {
transform: scale(1);
}
to {
transform: scale(1.15);
}
}
.huliku_beat_left,
.huliku_beat_right {
float: left;
width: 20px;
height: 25px;
border-radius: 50px 50px 0 0;
background-color: red;
}
.huliku_beat_left {
transform: translateX(6.5px) rotate(-50deg);
}
.huliku_beat_right {
transform: translateX(-6.5px) rotate(50deg);
}
@media screen and (min-width:768px) and (max-width:800px) {
.huliku_footer {
padding: 30px 10px 10px;
}
}
@media screen and (min-width:768px) {
.huliku_footer .copyright a {
color: #545454;
}
.huliku_footer .copyright p {
display: inline-block;
padding: .5em 1.5em;
background: #000;
}
.huliku_footer .copyright .asline {
display: inline;
}
.huliku_footer .copyright {
color: #545454;
}
.footer-navi .bands ul li {
width: 16.6667%;
}
.footer-navi .bands {
float: left;
width: 100%;
}
.footer-navi .ewms {
width: 33.33333%;
}
.footer-navi .navis {
width: 60%;
}
.footer-navi .huliku_wrapper-bq {
padding-top: 32px;
}
.footer-navi {
display: block;
}
.Onecad_fl {
float: left;
}
.fr {
float: right;
}
}
@media(min-width:1024px) {
.footer-navi .qqgroup {
width: auto;
}
.footer-navi .bands {
width: 73%;
}
.footer-navi .navis {
width: 33.33333%;
border-right: 1px solid var(--muted-3-color);
border-left: 1px solid var(--muted-3-color);
}
.footer-navi .widget:after {
position: absolute;
top: 0;
right: -21px;
width: 0;
height: 95%;
/*border-right:1px solid var(--muted-3-color);*/
content: "";
}
.footer-navi .about {
margin: -10px 20px 0;
width: 33.33333%;
font-size: 13px;
}
}
@media(min-width:1310px) {
.footer-navi .navis .navi {
margin-top: -10px;
}
.footer-navi .about {
padding-right: 0 20px;
height: 190px;
font-size: 14px;
}
.footer-navi {
overflow: visible;
}
}
@media(max-width:1023px) {
.hide_sm {
display: none !important;
}
.footer-navi .ewms {
display: none !important;
}
}
@media(max-width:1600px) {
.footer-navi .ewms .ewm-content.ewm-douyin,
.footer-navi .ewms .ewm-content.ewm-wechat {
right: 0;
left: auto;
transform: translate(0);
}
.footer-navi .ewms .ewm-content.ewm-douyin:before,
.footer-navi .ewms .ewm-content.ewm-wechat:before {
right: 30px;
left: auto;
}
.footer-navi .ewms .ewm-content.ewm-douyin {
transform: translate(70px);
}
.footer-navi .ewms .ewm-content.ewm-douyin:before {
right: 100px;
}
}
@media(max-width:767px) {
.foot-copyright {
padding: 0 10px 25px;
}
.huliku_footer {
padding: 30px 10px 10px;
}
.footer-tabbar-placeholder {
display: none;
}
}
@media screen and (max-width:768px) {
#huliku_stat .siteCount ul li span {
font-size: 20px;
font-family: Arial;
}
.footer-navi {
display: block;
}
}
[/hidecontent]