WordPress Simple Popup Plugin
Here’s my first WordPress plugin; blood, sweat, and tears have gone into making this simple thing. The function of this plugin is to easily create a simple popup window like so.
I figure there’s got to be a bunch of bands/musicians using WordPress that need an easy way to create a popup music player to showcase their songs without having visitors go to a separate page of the site.
*This plugin is compatible with WordPress 2.8 and above.
Installation
- Download and install/activate this Simple Popup plugin.
- Adjust settings in the options page.
- Use.
Usage
-Create a popup link in a post or a page by using the shortcode:
[popup url="http://www.popupurl.com"]Link Text Here[/popup]
-For simple sidebar links use the widget
-Create a popup link anywhere else in a sidebar, header, footer, etc. by using the template tag:
<?php simple_popup_link("http://www.popupurl.com","LINK TEXT HERE"); ?>
Screenshot

Changelog
2/23/09 – Version 2.0 – Now has an option for toggling scrollbars, a widget for easily adding a link to the popup in your sidebar, and a template tag for adding a link wherever else you might want one! Roll it!
11/1/09 – Version 3.0 – Added support for multiple popup links. Now has the option to position the window on the screen. Removed widget
Wasn’t very useful.
11/3/09 – Version 3.1 – Brought back widget with easier usage!
There you go Julie!
1/15/10 – Version 3.2 – With the help of Rich added ability to use multiple popups in the widget and window centering support.
Categories: Internet, Wordpress Plugins
Listen to My Music
Sketchup
I have a few enhancements I am needing that others may also find useful:
1. We want our radio player to pop up on a configurable delay after the site loads no matter what page they hit in WordPress.
2. We only want the popup to launch one time, so they can browse the site and listen to our music without multiple pop-ups happening.
3. If they close the pop-up to stop the music, but continue to browse the site, we don’t want the pop-up to launch again until they leave the site and come back some other time.
Doable and if so how, when, and how much?
I want this exact functionality as well. any plans to make this happen? thank you! Your plugin is the best for this, but I’d prefer to have visitors not be required to click to launch the music player I’m embedding in the popup.
Hallo Garret
It could have been so good…
Could not get it to work – running wp 2.9.1 – it just opens up a new tab in the browser…???
Am I going crazy – I think I am.
Cheers
Stokko
OK I was crazy! – I took away the px in height and width. And it works! My bad…
Thanks – the world is waiting.
stokko
is there a way i can use like a hard-coded link?
i’ve tried the <?php simple_popup_link… but didn't work.
i'm making a link from a table that is inside a widget.
so i can't use the widget funcion, and the [popup ...] doesn't work either.
is there some other way i can make it work?
thanks
I recently downloaded and installed version 3.2 from the WordPress plugin site (http://wordpress.org/extend/plugins/simple-popup-plugin/) and noticed that the admin “options.php” file is missing from the archive.
Hence when administering your plugin from the admin side you can not update/save your settings.
Hi John, you may be missing the options page because it’s called simple_popup_admin.php Options page isn’t working for you though? What version of WordPress are you using?
Can I use an image for the pop-up link instead of text?
this one works perfectly for pop up of page when clickin on image:
http://demoblog.ajaydsouza.net/2009/02/27/testing-open-browser-window-plugin/
Replace -
with -
<?php simple_popup_link("/wp-content/themes/gazette/musicplayer.php","”); ?>
where you replace “yourwebsite/image.jpg” with the actual URL of your image.
Oops, the code got parsed out of the comment. Simply put a standard html image tag in place of the LINK TEST HERE. Then replace the double quotes around the URL of the image with single quotes and remember to put a “/” before the “>” of the image URL end tag.
Hi Borderorder
I very much appreciate your sharing how to use and image with this plugin but unfortunately i am quite stupid and your explanation went over my head. Is there any way you could simplify it for me. Thanks Robin
Like this…
<?php simple_popup_link("POP UP LINK HERE","”); ?>
Oh… the html got erased. Okay, copy this code but change [ ] to
[?php simple_popup_link("http://thcanada.com/radio/player.html","[img src='http://juliatest.thcanada.com/wp-content/themes/dreamyblog5/dreamyblog5/images/radio.png'/]“); ?]
Hi,I want to use an image in place of text,
Please suggest me th way
thx
Hi,I want to use an image in place of text,
Please suggest me th way
thx
this works perfectly for pop up of page when clickin on image:
http://demoblog.ajaydsouza.net/2009/02/27/testing-open-browser-window-plugin/
Hi
I just tried your great plugin and wanted to point out a slight problem – and the fix for it. If – when inserting the code on the page or post – you copy and paste a URL into the code instead of typing it in manually the pop up won’t work.
I was inserting a particularly long URL so it seemed a lot easier to copy paste – is there any other way to fix this? – Thanks again – I love the plugin. Robin
hi thanks for the great plug in.
I’m just wondering on my pop up tap bar is still show up but not yours I want to take it out. is there anyway i have to check?
and is there anyway to use image as a place holder?
let me know,
Thanks.
Hi,
Thanks about the links I didn’t read comment.
how to open a post im popup?
My idea is to have a link that when clicked open the content of post in a popup.
Only the contents, without menus, etc..
tks
How to center the popup window?
nevermind “To center the popup window, set both distance from top/left to 0″
I have the music player to popup a certain area. but I want another popup window to be centered. Anyway to have different configurations, or once it is set, it is set for all popups to be the same sitewide?
I love this plug in, it’s exactly what I need, but there seems to be something a little janky with it and I can’t for the life of me see what I might be doing to make it this way.
I have a website where I want users to be able to open windows. I have several links (about 60) that I want to link to a pop up window.
I’m at about linking 12 of them, and for some reason if I add anymore links, my whole page will render blank. I’ve tried typing it in, copy and pasting, I’ve double and triple checked my codes to make sure I’m not missing a character, and it’s all correct. However, like I said, if I try to add anymore then the 12 links I have on my page it’s all rendered blank.
Perhaps I’m doing something my eyes just aren’t catching? Any advice? The page in question is located here:
http://seedbank.populuxe.ca/?page_id=11
Thanks so much for any insight you might be able to provide!
Hi Kelly. I’m having the same problem. Did you ever get it figured out?
Unfortunately no, I’ve resorted to using links just to a simple page. Still hoping for a fix though because I’d love to be able to use this plug in.
Hi,
Your plugin seems perfect for what I want to do. However, when I insert a popup link in a page, as shown in your instructions, it simply links back to the page from which the popup is launched. So I just get the same page I’m already on, inside the popup window. For some reason its just going to the source page, instead of what I put in url=’xxx’ on the page. I’m using WP 2.9.2 and can’t figure it out. My code points to an HTML page that I want to popup, but even on mouseover it just shows the address of the page that the link is on, not the address I put in the code. Any ideas?
I apologize. I have since figured it out. I looked at the HTML view and discovered that when I pasted in the address, it had pasted the html code to make it a link. So instead of url=’xxx’ it was (modified so it wont be code) url=”a href=”xxx”xxx/a” and that appears to be what was messing it up.
Is there any way to make the text wrap in the popup? I have a text file that pops up but it doesn’t wrap so you have to scroll horizontally…
Hi just install the plugin… its activated on the gallery page and nothing simply happens.
anyone would know why?
thank you
http://www.fredevents.com/event-gallery
Hi Quentin, thanks for checking out the plugin. See the above post for instructions on how to use it.
Works fine in Firefox and Safari. For some reason, in Internet Explorer, the popup window can’t be expanded.
Any ideas?
Hi Folks,
Simple issue i’m sure. Well not even an issue more so incompetence.
I’m trying to link the popup plugin to the permalink and have no idea how this would be done!
Example:
<a href="<img src="/images/clickhere_icon_darkgrey.gif” alt=”" />
Many knowledge of Javascipt is absolutely nil, and I got someone to implement the wordpress. I just did the initial design.
Happy help would be hugely appreciated. manythanks,
Dan
Hi Folks,
Simple issue i’m sure. Well not even an issue more so incompetence.
I’m trying to link the popup plugin to the permalink and have no idea how this would be done!
Example:
<a href="<img src="/images/clickhere_icon_darkgrey.gif” alt=”" />
Many knowledge of Javascipt is absolutely nil, and I got someone to implement the wordpress. I just did the initial design.
Happy help would be hugely appreciated. many thanks,
Dan
hello,
I was trying to put the style option in to change the color of the link like you do with but nothing seems to work?
Is there a way?
[popup url="http://www.mywebsite/mylink.pdf" style="color:#00F" ]Brochure[/popup]
Instead of getting a popup window, it opens a new tab.
Is anyone else getting this? How do I fix that?
flygirl,
It probably means you have javascript turned off.
And it CAN vary by browser or browser settings. If the popup fails, a new tab or full window is the fallback.
My javascript is enable
What kind of music player are you using with your demo? I like it and I want to use it
Thanks
I’m using this one http://musicplayer.sourceforge.net/
You sir are truly a legend. This is exactly what I was after
How to open a post im popup?
My idea is to have a link that when clicked open the content of post in a popup.
Only the content, without menus,header etc..
tks
hello i found this information in spanish for my problem. is the best solution.
http://ayudawordpress.com/plantillas-personalizadas-page-template/
I need the code so when I click on an IMAGE, it pops up a link. not click on a LINK and popup an image..
search in the plugin directory a plugin like ngg galery.
or simple pop up image, is the same, but for images.