值得一看
欢迎购买广告位
欢迎购买广告位
欢迎购买广告位
欢迎购买广告位
欢迎购买广告位
欢迎购买广告位
欢迎购买广告位
欢迎购买广告位
🎀 🌸

子比主题美化 – 自定义文章标签前缀申明

子比主题美化 – 自定义文章标签前缀申明【子比主题美化】

原理是使用CSF框架创建一个metabox给文章储存相关数据,然后通过过滤文章标题实现在文章前面增加前缀。

子比主题美化 – 自定义文章标签前缀申明-小哥博客
图片
子比主题美化 – 自定义文章标签前缀申明-小哥博客
后台

部署教程

代码放在functions.php下或func.php

子比主题美化 – 自定义文章标签前缀申明
隐藏内容,输入密码后查看
微信扫描二维码或搜索【小哥卡密】小程序,输入【25515】获取密码验证后就能查看。

自定义css

.DearLicy_prefix{
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    padding: 5px 4px;
    margin-right: 3px;
    height: 19px;
    font-size: 12px;
    top: -3px;
    clip-path: polygon(7% 0, 99% 0, 93% 100%, 0 100%);
}
.DearLicy_prefix:after, .DearLicy_prefix:after {
    position: absolute;
    content: " ";
    display: block;
    left: -100%;
    top: -5px;
    width: 15px;
    height: 145%;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    animation: sweepTitle 3s ease-in-out infinite;
    transform: rotate(28deg);
}
@keyframes sweepTitle {
    0% {
        left: -100%
    }

    100% {
        left: 100%
    }
}
© 版权声明
THE END
喜欢就支持一下吧
点赞5赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容