WordPress主题美化文章页面标签和底部菜单的教程

美化文章页面的标签css代码如下:

/** 文章页面彩色标签 */
.post-tags-icon {display:none;}
.post-tags{margin-bottom: 10px}
.post-tags a{padding: 4px 10px;background-color: #19B5FE;color: white;font-size: 12px;font-weight:bold;line-height: 16px;font-weight: 400;margin: 0 5px 5px 0;border-radius: 10px;display: inline-block;opacity:unset;}
.post-tags a:nth-child(5n){background-color: #ffc034;color: #FFF}
.post-tags a:nth-child(5n+1){background-color: #ff6eed;color: #FFF}
.post-tags a:nth-child(5n+2){background-color: #ff5e5c;color: #FFF}
.post-tags a:nth-child(5n+3){background-color: #1ac756;color: #FFF}
.post-tags a:nth-child(5n+4){background-color: #19B5FE;color: #FFF}
.post-tags a:hover{background-color: #1B1B1B;color: #FFF}

底部菜单美化

底部菜单美化的css代码如下:

/** 底部菜单美化 */
.menu-footer-list {
    display: inline-block;
    border-radius: 4px;
    text-shadow: none;
    font-size: 12px;
    color: #fff !important;
    line-height: 15px;
    margin-bottom: 5px;
}
.menu-footer-list .menu-item a {
    color: #fff !important;
    font-size: 13px;
}
.menu-footer-list .menu-item{
    display: inline-block;
    background-color: #4d4d4d;
    padding: 4px 4px 4px 6px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    margin-right: 5px;;
}
 
.menu-footer-list li:nth-child(6n+1) {
    background-color: #4dc820;
}
.menu-footer-list li:nth-child(6n+2) {
    background-color: #8833d7;
}
.menu-footer-list li:nth-child(6n+3) {
    background-color: orange;
}
.menu-footer-list li:nth-child(6n+4) {
    background-color: #e91515;
}
.menu-footer-list li:nth-child(6n+5){
    background-color: #007ec6;
}
.menu-footer-list li:nth-child(6n) {
    background-color: #e323c2;
}
 
#menu-footer-nav li:hover {
  transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    -ms-transform: scale(1.1);
}

👋 感谢您的观看!

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享