最新公告
  • 资源宝-专注于优秀资源,本站秉承服务宗旨 履行“站长”责任, 服务永无止境!
  • RIPRO主题美化-资源类型判断图标

    此次修改的是资源类型图标,就是图上VIP还是免费的那个。第一版用的阿里图标但是不太醒目, 这是第二版用的一张小图,感觉还可以放出教程!

    首先上传图标到/ripro/assets/images,图标地址。然后修改/ripro/assets/css/diy.css,如下:

    .vvip0,.vvip10,.vvip30,.vvip70,.vvip75,.vvip80,.vwip0,.vwip10,.vwip30,.vwip70,.vwip75,.vwip80,.vvip302,.vvip702,.vvip752,.vvip802,.vwip302,.vwip702,.vwip752,.vwip802 {
    display: inline-block;
    background-image: url(../images/tuyiyi_vip4_1.png);
    background-size: auto 40px;
    vertical-align: middle;
    height: 40px;
    width: 40px
    }
    .vvip0,.vvip10,.vvip30, .vvip70, .vvip75, .vvip80, .vvip302, .vvip702, .vvip752, .vvip802 {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    }
    .vvip0,.vwip0 {
    background-position: 0 0
    }
    .vvip70,.vwip70 {
    background-position: -80px 0
    }
    .vvip30,.vwip30 {
    background-position: -40px 0
    }
    .vvip302,.vvip702,.vvip752,.vvip802 {
    background-position: -200px 0
    }
    .vvip75 {
    background-position: -160px 0
    }
    .vvip80,.vwip75,.vwip80 {
    background-position: -120px 0
    }
    .vwip0,.vwip10,.vwip30,.vwip70,.vwip75,.vwip80,.vwip302 {
    position: absolute;
    z-index: 10;
    border-radius: 5px 0 0 0
    }
    .vvip10,.vwip10 {
    background-position: 0 0
    }
    

    为什么这么多?因为图片里还有预制的几个备用图标,比如SVIP,QVIP之类的,可以自己选用!我这里只用了免费和VIP两个!
    然后修改/ripro/parts/template-parts/content-grid.php第八行也就是在

    <img " src="https://www-httple-net-1251009338.cos.ap-beijing.myqcloud.com/QQ截图20200603210723.png" width="648" height="72" />
    

    之前,
    修改/ripro/parts/template-parts/content-list.php第三行也就是在

    之前,
    加上如下:

    $post_price = _get_post_price();
    $post_price =($post_price) ? '' : '' ;
    ?>
    

     


    资源宝-—专注于优秀资源搜集共享与发布
    资源宝 » RIPRO主题美化-资源类型判断图标

    发表评论

    • 99999访问总数
    • 397会员总数(位)
    • 11062资源总数(个)
    • 900 资源大小(GB)
    • 764稳定运行(天)

    提供最优质的资源集合

    立即查看 了解详情