PIX主题设置教程-食用说明
声明下老付是个“很勤快”的人
PIX主题设置教程-食用说明 希望诸位大佬有空一起完善哈
【本帖持续更新到PRO发布】目前适用主题版本:1.0.7
![64a7bf887f900 64a7bf887f900](https://file.el9.cn/wp-content/uploads/2023/07/64a7bf887f900.png!1200)
基础设置
略~
底部信息+手机端导航:
注:手机端底部导航最好用个偶数做个精致男孩要不会很难受
![64a7c3912a6e0 64a7c3912a6e0](https://file.el9.cn/wp-content/uploads/2023/07/64a7c3912a6e0.png!1200)
关于友链:
这里要注意哈,图片链接要放在备注里面,不要被世俗蒙蔽了双眼
![64a7c498cada5 64a7c498cada5](https://file.el9.cn/wp-content/uploads/2023/07/64a7c498cada5.png!1200)
片刻获取地址(高德API):
首先你要去高德开放平台注册下 【https://lbs.amap.com/】配置好吧KEY填充到主题里面就好了
![64a7cc381804b 64a7cc381804b](https://file.el9.cn/wp-content/uploads/2023/07/64a7cc381804b.png!1200)
![64a7cccfa5698 64a7cccfa5698](https://file.el9.cn/wp-content/uploads/2023/07/64a7cccfa5698.png!1200)
PIX文章图片添加灯箱效果
一位不愿透露博客地址的群友@I Like Sing Jump Rap 提供的解决方案
路径如下:【外观】-【主题编辑器】-【pix-post.php】
add_filter('the_content', 'fancybox');
function fancybox($content){
global $post;
$pattern = array("/<img(.*?)src=('|\")([^>]*).(bmp|gif|jpeg|jpg|png|swf|webp)('|\")(.*?)>/i","/<a(.*?)href=('|\")([^>]*).(bmp|gif|jpeg|jpg|png|swf|webp)('|\")(.*?)>(.*?)<\/a>/i");
$replacement = array('<a$1href=$2$3.$4$5 data-fancybox="gallery"><img$1src=$2$3.$4$5$6></a>','<a$1href=$2$3.$4$5 class="fancybox" data-fancybox="image-'.$post->ID.'"$6>$7</a>');
$content = preg_replace($pattern, $replacement, $content);
return $content;
}
![64a7be3f164fd 64a7be3f164fd](https://file.el9.cn/wp-content/uploads/2023/07/64a7be3f164fd.png!1200)
片刻隐藏点赞转发+调整IP定位展示位置
![65eff56b6861a 65eff56b6861a](https://file.el9.cn/wp-content/uploads/2023/07/65eff56b6861a.png!1200)
一位不愿透露博客地址的群友@I Like Sing Jump Rap 提供的解决方案
路径如下:【外观】-【主题编辑器】-【TPL】-【content-moment.php】
![65eff60d673b9.webp!1200 65eff60d673b9.webp](https://file.el9.cn/wp-content/uploads/2023/07/65eff60d673b9.webp.jpg)
PIX去掉评论链接
![64accea55d0ef 64accea55d0ef](https://file.el9.cn/wp-content/uploads/2023/07/64accea55d0ef.png!1200)
路径如下:【外观】-【主题编辑器】-【/comments.php】【 /layouts/topic_form.php】
![64acceaa364b0 64acceaa364b0](https://file.el9.cn/wp-content/uploads/2023/07/64acceaa364b0.png!1200)
![64accea9d7ae4 64accea9d7ae4](https://file.el9.cn/wp-content/uploads/2023/07/64accea9d7ae4.png!1200)
注释掉上述你框选内容即可
B0ae个人成长计划-让,进步发生
----利她,有价值,不打扰----
Evan
灯箱图片,已用。。不错不错。👍👍👍👍👍👍👍
Ayiya1997
@Evan 拿走拿走都是你的😄
摸鱼大王
最后一个教程框错了,还要往下一行才对吧
Ayiya1997
@摸鱼大王 嗯 竟然被机智的你发现了
摸鱼大王
牛逼
517679191blsm@gmail.com
顶一下
Ayiya1997
@517679191blsm@gmail.com 😄你五岁了
毛毛
再更新添加音乐的部分,看很多人聊加音乐
Ayiya1997
@毛毛 我看看 因为我没用到过我就没更新😄
火鸡味锅巴
请把文中的用户名 I Like Sing Jump Rap 改成 火锅味坤吧
Ayiya1997
@火鸡味锅巴 是你小子啊 我不,你都不发你博客
火鸡味锅巴
我要拜师
老师人
我要拜师
Ayiya1997
@老师人 😄是你啊老哥 你就是师
老实人
@ayiya 师傅
1875866112@qq.com
辛苦了
Ayiya1997
@1875866112@qq.com 为人民服务
毛毛
幸苦了,很有用。
Ayiya1997
@毛毛 我是个勤快人~😄