How To Create a Popup Music Player Using the Simple Popup Plugin and XSPF Player for WordPress

November 18th, 2009

Requests have been abundant when it comes to using my Simple Popup Plugin for WordPress to create a popup music player.  Thus, I have written this guide to help you on your journey of musical satisfaction.

Here’s what we’re going for:

Popup Music Player

Download the Plugins

Download and install/activate the XSPF Music Player plugin and this Simple Popup plugin.

Create Page Template

Create a page template to be used for the page that you intend to popup.  This should be very minimal, ie no sidebar, navigation, etc.  You basically just want an empty page with maybe a background color and possibly some links associated with your music (facebook, myspace,…).

The XSPF Player plugin requires you to add this tag in the body of this template for the player to show:

<?php xspf_player::start('playlistname'); ?>

For info on creating a page template see the WordPress documentation.  If you like you can download this music player popup page template which already contains the XSPF Player tag and place it in your current theme’s folder for it to work.

Page Template

Create New Page

Create a new page (not page template) in WordPress with no text in the body and choose the page template you just created from the template pull-down menu.

Create New Page

Link it Up

Using the Simple Popup Plugin shortcode, template tag, or widget create a link to your newly created page wherever you desire.  Set the dimensions for the pop up in the Simple Popup Plugin’s options page.

And that’s it!  Ain’t no thang.

Categories: Tutorials, Wordpress Plugins


26 Comments on “How To Create a Popup Music Player Using the Simple Popup Plugin and XSPF Player for WordPress” Comments RSS Feed

  1. Hey Garrett,

    That’s awesome, good job. Would it only work with WordPress, or could I put it on my site too? Just paste your code in and follow your steps?

    ~Corinna

    • Garrett says:

      Yo Corrina, this method is just for WordPress but you can still add a music player to your website by using something simple like this http://www.premiumbeat.com/flash_resources/free_flash_music_player/ Let me know if you would like my help.

    • angel says:

      Thank you so much for reply to my e-mail. I still trying to make it work, but I think that problem is my luck on knowledge know how to use wordpress. I am knew at it.
      I was able to install the xspf player and I uploaded some songs, which I preview under option. But, when I pest this code ” ” into a page (HTML) and hit preview to view my site, the same code () shows up on my webpage.

      My question is do I need to create a template for xspf player?
      How do you make the my list show up using “” ?

      I am trying to make that xspt player work before messing with the up awesome popup.

  2. marco says:

    Where exactly do you put

    in the “simple page template” that you made.
    I dled that.
    Could you paste the exact code up please?
    Great Tut. Have been wanting to use same player for some time, but it would always reload or disapear when you click a link within a site. Now it can float. WOOT!

  3. marco says:

    Why isnt the < ?php xspf_player:….not coming up..not sure. thats what I was asking about..

  4. marco says:

    well I got it working, except the code that shows above it. Also I also trying to have the songs to play in a certain order, not sure how to do that. and then of course keep my heavy metal away from my salsa and divide into categories. Not sure how categories are implemented in the player.

  5. marco says:

    I found out that it looks like the player puts song in alphabetical order according to song title..kind of frustrating. I did a search a few years back that describes how to do playlists, but forgot where the link is.

  6. Carl Hyman says:

    Been following your blog for a while… good stuff

  7. MrPoLLo says:

    Thanks………………………….

  8. marco says:

    Anyone know how to change the actual location of the popup window? By default it now pops up right in the middle of the page and is distracting. Before, it used to popup in the upper left hand side.

  9. Lee says:

    hey Garrett,

    Cool plugin… I am have one issue… I cant change the size of the popup window… is there a way to hard code this or any other ideas?

    Thanks

  10. mojbuk says:

    Best regards.

    Thank you for wordpress simple popup plugin.

    If you can look popup window to do to be attractive? Something like faceboox or modal popup.

    Thank you, sorry for my english.

  11. mojbuk says:

    Best regards.

    Thank you for wordpress simple popup plugin.

    If you can look popup window to do to be attractive? Something like faceboox or modal popup.

    Thank you, sorry for my english.

Leave a Reply