wordpress主题右侧悬浮菜单美化

wordpress主题右侧悬浮菜单美化

01.footer.php代码:

分为两部分,一部分是css,css部分建议加到子主题的style.css里面!

另一部分是加到seven文件夹下footer.php里面,至于里面的位置放到</body>前面

下面是footer.php的代码(我发誓我复制的代码是正确的,但是发布文章之后会不会改变我真的不知道,这是个bug)

免费分享给大家,如果有修复好的 可以贡献给我们一份  感谢

<div class="elevator_item mobile-hide" id="elevator_item">
    <a class="hd-time-limited mobile-hide" rel="external nofollow" target="_blank" href="https://chonzi.com/wp-content/themes/begin/go.php?url=aHR0cHM6Ly93d3cuNmZ3cS5jb20vc2hvcA==" target="_blank" rel="nofollow"></a>
  <a target="_blank" class="feedback graHover mobile-hide" style="background-color: #1e6be3;color:#fff;" rel="external nofollow" target="_blank" href="https://chonzi.com/wp-content/themes/begin/go.php?url=aHR0cDovL2ltZy42ZndxLmNvbQ==" rel="nofollow">在线图床</a>
    <a target="_blank" class="feedback graHover mobile-hide" style="background-color: #ffd900;color:#383838;" rel="external nofollow" target="_blank" href="https://chonzi.com/wp-content/themes/begin/go.php?url=aHR0cDovL2R1YW4uNmZ3cS5jb20=" target="_blank" rel="nofollow">网址缩短</a>
    
    <a target="_blank" class="feedback graHover mobile-hide" style="background-color: #fa3c63;color:#fff;" rel="external nofollow" target="_blank" href="https://chonzi.com/wp-content/themes/begin/go.php?url=aHR0cHM6Ly93d3cuNmZ3cS5jb20vamlmZW5odW9xdQ==" rel="nofollow">积分获取</a>
    <a target="_blank" class="feedback graHover mobile-hide" style="background-color: #1e6be3;color:#fff;" rel="external nofollow" target="_blank" href="https://chonzi.com/wp-content/themes/begin/go.php?url=aHR0cHM6Ly93d3cuNmZ3cS5jb20vc2hvcC9zdWNhaQ==" rel="nofollow">积分素材</a>
    <div class="feedback medium mobile-hide">官方客服
        <div class="lf-box mobile-hide">
            <ul class="sp-list mobile-hide">
                <li><span>官方客服:205432983</span><a href="tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin=205432983" target="_self" class="btn-addGroup graHover" rel="nofollow">一键联系</a></li>
                <li class="spl-li clearfix mobile-hide">
                    <div class="fl mobile-hide">
                        <span>扫一扫加站长微信</span>
                        <img src="https://www.6fwq.com/wp-content/uploads/2019/01/mmqrcode1547102956654_看图王.jpg" alt="">
                    </div>
                    <div class="fr mobile-hide">
                        <span>官方QQ群</span>
                        <img src="https://www.6fwq.com/wp-content/uploads/2019/01/qqqun.png" alt="">
                    </div>
                </li>
            </ul>
        </div>
    </div>
/*footer*/
 
.elevator_item .hd-time-limited {
    display: block;
    position: fixed;
    right: 10.6px;
    bottom: 450px;
    width: 40px;
    height: 140px;
    background: url(https://www.6fwq.com/wp-content/uploads/2019/01/time-limited.png) no-repeat center;
    animation: vip-199-180510 2.4s infinite;
    margin-top: 10px;
}
 
@keyframes vip-199-180510 {
    0% {
        bottom: 442px;
    }
    50% {
        bottom: 450px;
    }
    100% {
        bottom: 442px;
    }
}
 
.aj-popbox .hd-time-limited .close-btn {
    width: 38px;
    height: 38px;
    right: 28px;
    top: 30px;
    line-height: 38px;
    text-align: center
}
 
.aj-popbox .hd-time-limited .close-btn i {
    font-size: 24px;
    color: #fff
}
 
.aj-popbox .hd-time-limited .timer {
    margin: 296px auto 0;
    width: 234px;
    font-size: 30px;
    color: #000;
    line-height: 48px;
    padding-left: 10px;
    letter-spacing: 13px;
    font-weight: bold
}
 
.aj-popbox .hd-time-limited .go-hd:hover {
    transform: scale(.95) translateY(2px)
}
 
.elevator_item {
    position: fixed;
    right: 12px;
    bottom: 195px;
    z-index: 11
}
 
.elevator_item .feedback {
    width: 36px;
    height: 40px;
    background-color: #fff;
    color: #fa3c64;
    font-size: 12px;
    padding: 5px 6px;
    display: block;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    cursor: pointer
}
 
.elevator_item .advice,
.elevator_item .add,
.elevator_item .return {
    color: #383838;
    line-height: 30px
}
 
.elevator_item .advice i {
    font-size: 28px
}
 
.elevator_item .add i,
.elevator_item .return i {
    font-size: 20px
}
 
.elevator_item .medium {
    position: relative;
    background-color: #fa3c64;
    color: #fff
}
 
.elevator_item .medium .lf-box {
    display: none;
    position: absolute;
    right: 41px;
    top: -90px;
    width: 370px;
    height: 280px;
    padding-right: 10px
}
 
.elevator_item .medium .sp-list {
    width: 360px;
    height: 280px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35)
}
 
.elevator_item .medium .sp-list li:first-child {
    height: 70px;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 50px
}
 
.elevator_item .medium li:first-child span {
    font-size: 14px;
    color: #383838;
    float: left;
    line-height: 30px
}
 
.elevator_item .medium .btn-addGroup {
    width: 90px;
    height: 30px;
    border-radius: 5px;
    background: #fa3c64;
    color: #fff;
    line-height: 30px;
    text-align: center;
    float: left;
    margin-left: 14px
}
 
.elevator_item .medium .spl-li {
    padding: 22px 34px 0
}
 
.elevator_item .medium .spl-li span {
    display: block;
    font-size: 14px;
    color: #383838;
    margin-bottom: 8px
}
 
.elevator_item .medium .spl-li img {
    width: 130px
}
 
.elevator_item .add {
    position: relative
}
 
.elevator_item .add .lf-box {
    display: none;
    position: absolute;
    right: 31px;
    top: -32px;
    width: 178px;
    height: 104px;
    padding-right: 10px
}
 
.elevator_item .add .sp-list {
    width: 168px;
    height: 104px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(100, 25, 25, 0.35)
}
 
.elevator_item .add .sp-list li {
    line-height: 52px;
    font-size: 14px;
    color: #383838;
    text-align: left
}
 
.elevator_item .add .sp-list li a {
    display: block;
    height: 52px;
    width: 100%
}
 
.elevator_item .add .sp-list li:hover a {
    color: #fa3c64
}
 
.elevator_item .add .sp-list li:hover i {
    color: #fa3c64
}
 
.elevator_item .add .sp-list li:first-child {
    border-bottom: 1px solid #e5e5e5
}
 
.elevator_item .add .sp-list i {
    color: #d8d8d8;
    font-size: 28px;
    margin-left: 16px;
    margin-right: 14px;
    vertical-align: middle
}
 
.elevator_item .add:hover>i,
.elevator_item .return:hover>i {
    color: #fa3c64
}
 
.elevator_item .feedback:hover .lf-box {
    display: block
}
 
.fl {
    float: left
}
 
.fr {
    float: right
}
 
.graHover {
    position: relative;
    overflow: hidden
}
 
.graHover:before {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .2)
}
 
.graHover:hover:before {
    display: block
}
 
.clearfix {
    *zoom: 1
}
 
.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0
}

 

 

分享到 :
相关推荐

奇店社群社区团购 V4.7.6安装更新包 微信小程序

此版本优化内容比较多,更新前做好快照备份等1、优化绿卡特权图标不闪现2、新增购物车色...

知识付费阅读店铺

演示小程序知识店铺内容付费阅读小程序,帮您轻松实现内容变现。近期部分用户反馈仍然有通...

WordPress如何获取全部文章总浏览数量

使用wordpress的小伙伴是不是一些在全网搜索wp的各种教程呢?以此来完善自己的...

无插件自动给WordPress文章添加description头部标签

虽然我们都知道"AllinOneSEOPack"插件是可以自动且自定义设置文章的关键...

发表评论

登录... 后才能评论