子比主题美化 – 首页自定义动态分类标题

 

探索子比主题美化技巧,通过自定义首页动态分类标题,让您的网站内容更加生动有序。无需复杂代码,简单几步即可打造独一无二的网站首页,吸引访客目光,提升用户留存率。

效果图:

图片[1]-子比主题美化 – 首页自定义动态分类标题-阿七源码

代码部署

后台 >> Zibll主题设置 >> 全局&功能 >> 自定义代码 >> 自定义CSS样式

    .box-body.notop {
        background: var(--main-bg-color);
        padding: 5px;
        padding-left: 1.2em;
        border-radius: 10px;
        margin-bottom: 10px;
    }
    
    .title-theme {
        position: relative;
        padding-left: 1.3em;
        font-size: 20px;
        margin: 5px;
    }
    
    .title-theme::before {
        content: '';
        top: -30px;
        width: 50px;
        height: 70px;
        left: -28px;
        background: url(图片链接地址);
        box-shadow: 0 0 black;
        background-size: cover;
    }
    
    .title-theme small {
        font-size: 60%;
        margin-left: 20px;
    }
    
    .title-theme .ml10::before {
        position: absolute;
        content: '';
        width: 1px;
        background: var(--theme-color);
        top: 30%;
        left: 115px;
        bottom: 16%;
    }

第二种演示:

/* 子比主题美化 – 首页自定义动态分类标题开始《阿七源码》 */
   body.home .box-body.notop {
	background:var(--main-bg-color);
	padding:5px;
	padding-left:1.2em;
	border-radius:10px;
	margin-bottom:10px;
}
body.home .title-theme {
	position:relative;
	padding-left:1.3em;
	font-size:20px;
	margin:5px;
}
body.home .title-theme::before {
	content:'';
	top:-20px;
	width:60px;
	height:60px;
	left:-28px;
	background:url('/wp-content/themes/zibll-child/images/热气球.svg');
	box-shadow:0 0 black;
	background-size:cover;
}
body.home .title-theme small {
	font-size:60%;
	margin-left:20px;
}
body.home .title-theme .ml10::before {
	position:absolute;
	content:'';
	width:1px;
	background:var(--theme-color);
	top:30%;
	left:115px;
	bottom:16%;
}
  
    /* 子比主题美化 – 首页自定义动态分类标题结束 */

 

两个任选其一即可 style标签

<style>
</style>

© 转载声明
本文作者:阿七源码
轩玮博客--专注于精品源码分享
文章版权声明 1 本网站名称: 阿七源码
2 本站永久网址:https://www.wmr7.com
1
2
3

本站代码模板仅供学习交流使用请勿商业运营,严禁从事违法,侵权等任何非法活动,否则后果自负!

Warning: Undefined variable $before in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 469

Warning: Undefined variable $after in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 469

Warning: Undefined variable $count in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 470

Warning: Undefined variable $args in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 535

Warning: Trying to access array offset on value of type null in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 535

Warning: Undefined variable $args in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 535

Warning: Trying to access array offset on value of type null in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 535

Warning: Undefined variable $args in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 535

Warning: Trying to access array offset on value of type null in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 535

付费阅读
子比主题美化 – 首页自定义动态分类标题

郑重承诺丨本站提供安全交易、信息保真!
增值服务:
9积分
VIP折扣
    折扣详情
开通VIP尊享优惠特权
升级会员
阿七源码的头像-阿七源码钻石会员
© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容