晨旭的博客
你想干什么!
晨旭的博客~
在WordPress中加上底部音乐播放器
在WordPress中加上底部音乐播放器

文章改自http://www.inlojv.com/wordpress-add-html5musicplayer-cue.html

首先下载数据:链接: http://pan.baidu.com/s/1nt8Jtv7 密码: 49wq

先下载解压,在主题functions.php中加入

<?php
include ("functions.cue.php");
?>

然后把整个cue文件夹和functions.php文件复制到正在使用的主题文件夹根目录

然后会在侧边栏看到cue选项

https://source.papapoi.com/wp-content/plugins/new-ueditor/ueditor/php/upload/88981447412779.png?imageView2/2/w/321/h/90|watermark/1/image/aHR0cDovL3NvdXJjZS5wYXBhcG9pLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wOC9sb2dvcGljLnBuZw==/dissolve/100/gravity/SouthEast/dx/10/dy/10

添加播放列表

添加完后打开外观-小工具

https://source.papapoi.com/wp-content/plugins/new-ueditor/ueditor/php/upload/80631447412780.jpg?imageView2/2/w/174/h/253|watermark/1/image/aHR0cDovL3NvdXJjZS5wYXBhcG9pLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wOC9sb2dvcGljLnBuZw==/dissolve/100/gravity/SouthEast/dx/10/dy/10

把左边playlist拉到右边,选择好歌单,保存

https://source.papapoi.com/wp-content/plugins/new-ueditor/ueditor/php/upload/1901447412780.jpg?imageView2/2/w/512/h/253|watermark/1/image/aHR0cDovL3NvdXJjZS5wYXBhcG9pLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wOC9sb2dvcGljLnBuZw==/dissolve/100/gravity/SouthEast/dx/10/dy/10

然后播放器被成功添加~

https://source.papapoi.com/wp-content/plugins/new-ueditor/ueditor/php/upload/12421447412781.jpg?imageView2/2/w/167/h/167|watermark/1/image/aHR0cDovL3NvdXJjZS5wYXBhcG9pLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wOC9sb2dvcGljLnBuZw==/dissolve/100/gravity/SouthEast/dx/10/dy/10

https://source.papapoi.com/wp-content/plugins/new-ueditor/ueditor/php/upload/74431447412782.jpg?imageView2/2/w/800/h/283|watermark/1/image/aHR0cDovL3NvdXJjZS5wYXBhcG9pLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wOC9sb2dvcGljLnBuZw==/dissolve/100/gravity/SouthEast/dx/10/dy/10

建议配合ajax使用以免换界面时音乐中断

赞赏
如非特使说明,本站所有文章均采用知识共享 署名-非商业性使用-相同方式共享4.0国际许可协议(CC BY-NC-SA 4.0)进行许可。

相关文章

发表评论

textsms
account_circle
email

晨旭的博客~

在WordPress中加上底部音乐播放器
文章改自http://www.inlojv.com/wordpress-add-html5musicplayer-cue.html首先下载数据:链接: http://pan.baidu.com/s/1nt8Jtv7 密码: 49wq先下载解压,在主题functions.php中加入<?p…
扫描二维码继续阅读
2015-11-13