RiProV2美化-鼠标指针美化

功能介绍

感觉每次进入自己站点都对鼠标指针不满意,想换成二次元图片?炫酷图标?或者自定义成自己喜欢的模样,那就试试集成以下这个功能吧!

配置教程

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

array(
'id' => 'is_diy_mouse',
'type' => 'switcher',
'title' => '鼠标指针美化',
'label' => '启用后可自定义鼠标样式',
'default' => false,
),
array(
"id" => "body_mouse_img", 
"type" => "upload", 
"title" => "普通指针图片", 
'placeholder' => 'http://',
'button_title' => '上传',
'remove_title' => '删除',
"dependency" => 
array("is_diy_mouse", "==", 'true',)
),
array(
"id" => "hover_mouse_img", 
"type" => "upload", 
"title" => "链接指针图片", 
'placeholder' => 'http://',
'button_title' => '上传',
'remove_title' => '删除',
"dependency" => 
array("is_diy_mouse", "==", 'true',)
),

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

//+----------------------------------------------------------------------
//| 鼠标指针美化
//+----------------------------------------------------------------------
if (_cao('is_diy_mouse')){
add_action('wp_footer', function () {
$body_mouse_img=_cao('body_mouse_img');
$hover_mouse_img=_cao('hover_mouse_img');
echo <<<EOT
<style>
body {cursor: url($body_mouse_img), default;}
a:hover{cursor:url($hover_mouse_img), pointer;}
</style>
EOT;
}, 100);
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
日主题系列

RiProV2美化-樱花特效

2022-10-23 16:16:13

日主题系列

RiProV2美化-自动添加标签

2022-10-22 2:34:30

9 条回复 A文章作者 M管理员
  1. Hello my loved one! I want to say that this post is amazing, great written and include almost all significant infos. I would like to look extra posts like this.

  2. What i don’t understood is in reality how you’re now not really a lot more smartly-favored than you might be now. You’re very intelligent. You understand therefore significantly in terms of this topic, produced me personally believe it from a lot of numerous angles. Its like women and men are not interested except it is one thing to accomplish with Woman gaga! Your own stuffs outstanding. Always care for it up!

  3. Usually I do not read article on blogs, however I would like to say that this write-up very compelled me to take a look at and do it! Your writing style has been amazed me. Thank you, very nice article.

  4. Usually I do not read article on blogs, however I would like to say that this write-up very compelled me to take a look at and do so! Your writing taste has been amazed me. Thanks, quite nice post.

  5. Wonderful beat ! I wish to apprentice while you amend your web site, how could i subscribe for a blog web site? The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright clear idea

  6. Thank you for the auspicious writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! By the way, how could we communicate?

  7. I loved as much as you’ll receive carried out right here. The sketch is attractive, your authored material stylish. nonetheless, you command get bought an nervousness over that you wish be delivering the following. unwell unquestionably come more formerly again as exactly the same nearly a lot often inside case you shield this hike.

  8. Magnificent beat ! I would like to apprentice while you amend your site, how can i subscribe for a blog web site? The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear idea

  9. My brother suggested I might like this website. He was totally right. This post actually made my day. You cann’t imagine just how much time I had spent for this information! Thanks!

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