前言:
给你的worpdress网站增加一个粉色果冻泡泡loading动画,经测试,这个动画特效会稍微拉低网站的访问速度。
演示效果
![图片[1]-子比主题美化 粉色果冻泡泡loading动画-技术猿资源站](https://techape.oss-cn-hangzhou.aliyuncs.com/wp-content/uploads/2024/01/未命名的设计.gif)
教程如下
1.首先,打开
在(_pz(‘qj_dh_xs’) == ‘no2’)
![图片[2]-子比主题美化 粉色果冻泡泡loading动画-技术猿资源站](https://techape.oss-cn-hangzhou.aliyuncs.com/wp-content/uploads/2024/01/image-35-1024x264.png)
(_pz('qj_dh_xs') == 'no0') {
$dh_nr = '<div class="vxras"><div class="vxras2"></div><div class="vxras3"></div></div>';
} elseif
2.之后,再搜索(_pz(‘qj_loading’)) 从if开始到}结尾覆盖成以下代码:
if (_pz('qj_loading')) {
return '<div class="qjl qj_loading" style="position: fixed;background:linear-gradient(150deg,#d299c2,#fef9d7);overflow: hidden;align-items: center;justify-content: center;display: flex;width: 100%;margin-top:-150px;height:300%;z-index: 99999999"><div style="position:fixed;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center">' . $dh_nr . '</div></div>';
}
3.然后,前往/wp-content/themes/zibll/inc/options/admin_options.php 搜索’no1′ => (‘淡出淡入’, ‘zib_language’), 在前面加入一行:’no0′ => (‘果冻泡泡’, ‘zib_language’), 保存即可。
4.最后,将下发css代码粘贴到子比主题后台——自定义代码——自定义css保存。













![VIP/SVIP/会员置顶图标素材分享 [QQ五款svip动态图标/gif图标/等级图标/GIF动图/免抠元素]-技术猿资源站](https://techape.oss-cn-hangzhou.aliyuncs.com/wp-content/uploads/2024/03/vip2.gif)
本次数据库查询:11次 页面加载耗时0.370 秒





浙ICP备2023007301号-3
联系我们





暂无评论内容