RiProV2美化-文字输入特效

功能介绍

是否觉得在评论或者搜索输入文字的时候觉得自己的站点有点儿小单调,没关系,集成启用这个功能之后会在用户打字的时候拥有震动效果,让他不在单调!

配置教程

首先利用宝塔或则FTP打开/inc/options下的admin-options.php文件把下面代码放在20行左右

array(
'id' => 'is_text_boom',
'type' => 'switcher',
'title' => '文字输入特效',
'label' => '评论框等输入文字有礼花和震动特效',
'default' => false,
),

最后在主题根目录下打开functions.php将以下代码放在最后即可

//+----------------------------------------------------------------------
//| 文字输入爆炸效果
//+----------------------------------------------------------------------
if(_cao('is_text_boom')){
add_action('wp_footer', function () {
if (is_single() || is_page() ) {
echo <<<EOT
<script type="text/javascript" src="https://van.ygit.net/wp-content/themes/van/assets/js/beautify/text_boom.js"></script>
<script>
POWERMODE.colorful = true; // true 为启用礼花殊效
POWERMODE.shake = true; // false 为禁用震惊殊效
document.body.addEventListener('input', POWERMODE);
</script>
EOT;
}
}, 100);
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
日主题系列

RiProV2美化-滚动条美化

2022-10-23 16:08:20

日主题系列

RiProV2美化-樱花特效

2022-10-23 16:16:13

6 条回复 A文章作者 M管理员
  1. I do believe all the ideas you’ve presented for your post. They are really convincing and will certainly work. Nonetheless, the posts are too short for novices. May just you please lengthen them a little from subsequent time? Thanks for the post.

  2. Thank you, I have just been searching for information approximately this topic for a while and yours is the best I have found out so far. However, what in regards to the bottom line? Are you certain concerning the supply?

  3. Hi my loved one! I wish to say that this post is amazing, nice written and include approximately all vital infos. I’d like to peer more posts like this.

  4. I simply could not go away your web site prior to suggesting that I really enjoyed the standard info a person supply on your guests? Is going to be back incessantly to investigate cross-check new posts.

  5. Excellent blog here! Also your website loads up very fast! What web host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as quickly as yours lol

  6. Nice blog here! Also your site loads up fast! What host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as quickly as yours lol

个人中心
今日签到
有新私信 私信列表
搜索
赣ICP备2021010644号-1