如何在WordPress中添加音频音乐播放器小部件

Do you want to add an audio player on your WordPress site? Recently one of our users asked if there was an easy way to add a music player widget with song details in WordPress. Since WordPress is a popular choice among podcasters and musicians, there are some pretty amazing tools available to do the job. In this article, we will show you how to add a music player widget in your WordPress sidebar.

您是否要在WordPress网站上添加音频播放器? 最近,我们的一位用户询问是否有一种简单的方法可以在WordPress中添加带有歌曲详细信息的音乐播放器小部件。 由于WordPress是播客音乐人中最受欢迎的选择,因此可以使用一些非常出色的工具来完成这项工作。 在本文中,我们将向您展示如何在WordPress侧边栏中添加音乐播放器小部件。

Adding a Music Player in WordPress
影片教学 (Video Tutorial)

演示地址

If you don’t like the video or need more instructions, then continue reading.

如果您不喜欢该视频或需要更多说明,请继续阅读。

First thing you need to do is install and activate the Simple Music Widget plugin. Upon activation, visit Appearance » Widgets.

您需要做的第一件事是安装并激活Simple Music Widget插件。 激活后,访问外观»小部件

There you will see Simple Music Widget in the list of available widgets. Drag and drop the widget to a sidebar and configure the settings.

在那里,您将在可用小部件列表中看到Simple Music Widget。 将小部件拖放到侧栏并配置设置。

Simple Music Widget Settings

You will need to provide a title for the widget. This title will appear as the heading before the widget content. If you don’t want to display a title, then you can leave this field blank.

您将需要为小部件提供标题。 该标题将显示为窗口小部件内容之前的标题。 如果您不想显示标题,则可以将此字段留空。

Next, you need to provide the information about the track you are adding like artist, song, and album name.

接下来,您需要提供有关要添加的曲目的信息,例如艺术家,歌曲和专辑名称。

After that you need to add an album cover and the music file.

之后,您需要添加专辑封面和音乐文件。

You can upload your cover image and music file by going to Media » Add New. Simply drag the files there to upload them.

您可以转到Media»Add New来上传封面图像和音乐文件。 只需将文件拖到那里即可上传。

Note: Your music file needs to be in mp3 or ogg vorbis format.

注意:您的音乐文件必须为mp3或ogg vorbis格式。

After uploading your files, click on the edit link next to them.

上传文件后,单击文件旁边的编辑链接。

Uploading media files and getting the file URL

This will take you to a page where you can see additional information about your files. Copy the file location and then paste it in the widget.

这将带您到一个页面,您可以在其中查看有关文件的其他信息。 复制文件位置,然后将其粘贴到小部件中。

Getting media file URL

Once you are done, save your widget settings and visit your website to see it in action.

完成后,保存您的窗口小部件设置并访问您的网站以查看实际操作。

Preview of a simple music widget in sidebar

We hope this article helped you add a music player widget to your WordPress sidebar. You may also like our tutorial on how to create a sticky floating sidebar widget in WordPress.

我们希望本文能帮助您将音乐播放器小部件添加到WordPress侧边栏。 您可能还喜欢我们的教程,该教程介绍了如何在WordPress中创建粘性浮动边栏小部件

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterGoogle+上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-add-an-audio-music-player-widget-in-wordpress/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值