WordPress Simple Popup Plugin

Looking for a popup that will automatically open after a specified amount of time?  Then check out my Simple Auto Delay Popup WordPress 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

  1. Download and install/activate this Simple Popup plugin.
  2. Adjust settings in the options page.
  3. Use.

Usage

Shortcode

Create a popup link in by using this shortcode within the post or page editor:
Simple Popup Plugin Shortcode

Shortcode Attributes

  • url = ‘*The url you wish you popup. The only required attribute.’
  • width = ‘The width of the popup in pixels. Overrides the width set in the options screen.’
  • height = ‘The height of the popup in pixels. Overrides the height set in the options screen.’
  • class = ‘Add a custom class to the link (simple_popup_link is added to each link by default)’

Popup Links in Template Files

If you would like to use the shortcode in a template file simply call it like so:

<?php echo do_shortcode('[popup url="http://popupurl.com']LINK TEXT[/popup]'); ?>

An image can be used as the link as well:

<?php echo do_shortcode('[popup url="http://popupurl.com']<img src="http://imageurl.com/image.jpg' />[/popup]'); ?>

Widget

Simple Popup Plugin Widget

Options Screenshot

Simple Popup Plugin Options Screenshot

Download

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.

11/3/09 – Version 3.1 – Brought back widget with easier usage!

1/15/10 – Version 3.2 – With the help of Rich added ability to use multiple popups in the widget and window centering support.

8/17/11 – Version 4.0 – Added the ability to change dimensions of individual popups via width & height attributes in the shortcode. Also added a ‘class’ attribute so you can add a custom class to the link if desired.

265 Comments on “WordPress Simple Popup Plugin” Comments RSS Feed

  1. Red Reynolds says:

    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?

  2. Stokko says:

    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

  3. rooob says:

    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

  4. John says:

    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.

  5. Zimmaron says:

    Can I use an image for the pop-up link instead of text?

    • Borderorder says:

      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.

      • Borderorder says:

        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.

        • Robin Hall says:

          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'/]“); ?]

          • Jesse says:

            Im with Robin on this one. Hate to be negative, but you guys are ASSUMING we know way too much, and please get your sh&* straight by knowing that code gets parsed when you comment.

            @Border – there is no “LINK TEST HERE” to reference above where you typed that, sorry, I dont know what to replace

            @feeprinz – change [] with what?

          • Garrett says:

            Try this for using an image with a link to the popup:

            < ?php simple_popup_link("http://www.popupurl.com","<img src='http://www.imageurl.com/image.jpg' />"); ?>

            Just replace those urls with the actual link and image url you’re using. Hope that helps.

            -G

          • Jesse says:

            Garrett, thanks for that, but it still didnt work.

            http://www.becomingafosterparent.com/test-signup-form

            that is the page I am testing it on, and that is what shows up (just the code)

          • Garrett says:

            Jesse, this tag is to be placed in the template files; not in a post.

          • Jesse says:

            Garrett

            ;) once again, I dont understand. Which template files? where were “template files” ever mentioned? and how would I do this for multiple images?

            thanks’
            Jesse

      • Jesse says:

        Garrett

        ;) once again, I dont understand. Which template files? and how would I do this for multiple images?

        thanks’
        Jesse

        • Garrett says:

          Hi Jesse,

          The instructions for this plugin above (in the original post) specify this as a ‘template tag’. This should answer any questions you have about templates: http://codex.wordpress.org/Stepping_Into_Templates

          • Shawn says:

            I’m afraid I’m completely lost. For a plug-in that’s described as “Simple” it doesn’t seem so simple to me, and I’m not exactly a newbie.

            Could someone please explain exactly where I put the shortcode? For example, if I create a page or post, specifically where do I put the shortcode? I tried entering it into the html of the post, but the whole code shows up rather than just the text link.

            Plus, there is no widget available to me to put into the sidebar, so that’s not even an option for me.

            I’m sure this is a great plug-in, but maybe you need to omit the word “Simple”. This is by far the most difficult plug-in I’ve ever tried to use.

            Thanks,
            Shawn

  6. Anupam Verma says:

    Hi,I want to use an image in place of text,
    Please suggest me th way
    thx

  7. Anupam Verma says:

    Hi,I want to use an image in place of text,
    Please suggest me th way
    thx

  8. Robin Hall says:

    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

  9. paul says:

    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.

  10. paulo says:

    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

  11. Kelly says:

    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!

  12. Tevya says:

    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?

    • Tevya says:

      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.

  13. John says:

    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…

  14. Quentin says:

    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

  15. Francis says:

    Works fine in Firefox and Safari. For some reason, in Internet Explorer, the popup window can’t be expanded.

    Any ideas?

  16. Dan B says:

    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

  17. Dan B says:

    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

  18. flygirl says:

    Instead of getting a popup window, it opens a new tab.

    Is anyone else getting this? How do I fix that?

  19. 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.

  20. flygirl says:

    My javascript is enable

  21. wojtke says:

    What kind of music player are you using with your demo? I like it and I want to use it
    Thanks

  22. Dan says:

    You sir are truly a legend. This is exactly what I was after

  23. Jose says:

    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

  24. marco says:

    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..

  25. Randomflow says:

    thanx for this very simple and cool plugin.
    is there a possibility to start my popup automatically when i open a specific site instead of clicking a link?

    thanx for feedback

  26. Sara says:

    I can’t seem to get this to work! I placed the appropriate tag in my footer.php file, and all it does is open a new tab! It won’t open a small popup window at all. :(

    • Azman AR says:

      Hi,

      The pop-up is exactly as I needed after migrating my site from html page to WordPress.

      I thing you can is add the ability to control the size of each pop-up.

      The current pop-up is universal. Which means, all pop-ups will have the same size.

      I suggest you creat another version where we can control the pop-up size from the pop-up code that we place in the posts.

      For example:

      [popup height="300" width="600" url="http://www.popupurl.com"]Link Text Here[/popup]

  27. marco says:

    You can change size

    • Azman AR says:

      Hi,

      If I have 3 pop-ups in a single page or post, how do I set different sizes for all 3 of them?

      1 with 300 x 500
      1 with 500 x 500
      1 with 100 x 100

      In the Plugin Settings, I can only set a web site wide universal size for every pop-up

      What I’m trying to figure out is how can I set difference sizes for all pop-ups.

    • Aaron says:

      Hi,

      I have the popup working and it is great. I want to hide the URL completely. The Location Bar checkbox is unchecked in the settings and the main URL box is not showing. However the URL is showing in the grey bar at the top. Is there a way to remove this?

    • Neil Maxwell-Keys says:

      Marco,

      HOW do you change the size of individual pop ups?

      I need it to do exactly the same as Azman AR as outlined…

      Cheers
      Neil

  28. jed says:

    Just installed the plugin now, and I can’t get a link to open in a new window – it just opens it in a new tab.

    I’ve tried it across Firefox and Google Chrome with the same result, using the bundled widget, and the template tag.

    Is this a known issue?

    Thanks.

  29. nizam says:

    i install the plugins.. the popup work fine but why there got “[rps]” word just beside the link? how to remove it? please advise

  30. elucia says:

    Hi there,
    do you know how I can create a gmap link for a Google map to popup?

    I am using your plugin right now for Google maps, however, the popup opens the entire browser window, with the map….I would like it to open the map only.

    any suggestion?

    it works very well, by the way, thanks!!

  31. JIM says:

    how do i make the win pop to appear automatically?

    Sincerely

    JIm

  32. Jeff Paulson says:

    Hi there,

    I am looking to put a dynamic link in this for use with twitter. So this is kinda the idea that i want to do.

    <?php simple_popup_link("http://twitter.com/home/?status= - “,”Tweet this post”); ?>

  33. Lauren says:

    Going out on a limb here for help. Normally pretty tech savvy but this player is not working out for me. I downloaded it off wordpress but then it says to install it into the /wp content folder.

    I don’t know what or where that is, so that’s my first problem…

    • Garrett says:

      Hi Lauren,

      Thanks for your comment. The wp_content folder is a folder on your hosting server which is included with the WordPress installation. These days though WordPress comes with the ability to install plugins from the plugin manager which you can access from the dashboard of your blog. Basically you just want to search for ‘Simple Popup Plugin’ and click install.

      For more info on this check: http://codex.wordpress.org/Plugins_Add_New_SubPanel

      Hope that helps, please let me know if you have any problems.
      -Garrett

  34. Fred says:

    I seem to get the URL location bar whether I have the “Location Bar” option set or not in the Simple Popup Plugin options screen. This is with WP 3.1.1 and Simple Popup Plugin 3.2 and using both Firefox 3.6.16 and Chrome 10.0.648.204.

  35. addem says:

    Hi I am trying to use the plugin to popup a separate music player….im trying to allow visitors the ability to have the music playing w/o interruption while simultaneously browsing other areas of the site…..any suggestions?

  36. Jon Trevor says:

    hi

    I love your popup plugin, and have been using it with great succes for about a year. Just recently I updated to ie9. Now, when I navigate to my website and click on a popup link, I get both a popup *AND* a the same page in a whole new window, which of course defeats the purpose. Will all ie9 users see this? Can I stop it? See for yourself, e.g. here http://letstalk.uk.net/about-me/

    any help appreciated

    Jon

  37. Unwired says:

    It does support anchor text? I tried to put it in the footer.php but it wont work..:(

    Anyhelp?

  38. Siddik says:

    this is great plugin. I want to know a thing. I need to pop-up only video using this plugin. Is there any way to do that.

  39. Anon says:

    I found this pop up great…i just want to know whether i can popup a form?

  40. Dave says:

    Great plugin :) Defo something the the core installation of wp is missing.
    Is it possible to add pseudo link classes to these? I know I could style the a {} css, but I would quite like separate styling for the popup links.

    Thanks :)

  41. John Paul says:

    Hi… Today I tried your plugin and it solved my problem, but now I have another one.

    What I am doing is launch an audio file in the popup window, and I want it to start playing immediately. In IE it does, haven’t tried Firefox, but when doing it from Chrome, it asks me to download the file instead of play it…

    the file is wma format

    any hint?

    Thanks!

  42. JS says:

    HI,

    I’m really glad I found this great plugin!

    One thing I might have missed: is there a way to show this popup as a modal “in-page” popup, rather than opening a new window? Ie the same way as the “Autopopup” shows its content?

  43. Garrett says:

    Version 4.0 – Added the ability to change dimensions of individual popups via width & height attributes in the shortcode. Also added a ‘class’ attribute so you can add a custom class to the link if desired.

  44. Kat says:

    Hi. Trying to use your plugin on page with a list of about 20 games. It is working fine for the first 10 or so but when I add to many the page seems to break. Can’t identify why, but basically the way its breaking is the wordpress template will load but none of the content for the page will show up – i.e. the header, page title, footer etc shows but not the text on the page. If I only have few links it works but if too many it breaks.

  45. Flash Buddy says:

    Just installed Simple Popup. WOW! That was simple, thanks.

  46. john says:

    hi

    why i got an error here?

    <?php echo do_shortcode('[popup url="http://popupurl.com'/popup‘); ?>

    i put this in my template file – it says syntax error..

    pls. help

  47. Harmony says:

    Hi, I am trying your plugin on a site in development on a multi-site install on this page: http://betterwebsitebuilders.com/robynsnestpm/tenants/

    I think I have the correct short code as follows:
    [popup url="http://betterwebsitebuilders.com/robynsnestpm/?p=65"]I. OCCUPANCY POLICY[/popup]

    But the pop-up does not go th that url – it just goes to the same page the shortcode is on… any ideas?

  48. Shorty05 says:

    Hello Garrett,

    first off ! Thanks for that awesome plugin!

    I use the widget to display a popout link in my sidbar.
    I have round about 60 categories.

    Now to my problem.

    Is there anyway to get a popout link assigned to a specific categorie?

    e.g

    i wanna show “popout link 1″ in my sidebar only for categorie id23, id 30 and id 45.

    “popout link 2″ should be shown in other categories.

    Do you think that can be done?

    Shorty

  49. wesleyst says:

    Hey there great plugin, loving it…

    but was wondering if you could make it possible so that the pop out window CANT be expanded but CAN be scrolled down?

    thanks,
    wes

Trackbacks/Pingbacks

Leave a Reply