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. BlackBoxer says:

    Thanks for a great plugin!

    I saw this question asked, but not answered- how do I make the pop-up page show only the content of the page or post and not the header and sidebar? Like your music player page.

  2. Tom says:

    Hi there, your plugin really is the mutts nuts! Seriously, it has helped us out at mooedia big time!

    Quick question:

    We use wordpress and in our posts have buy now buttons for the products and services that we sell.

    We would like it so when the buy now button is clicked it goes to the popup plugin and brings up the popup with the destination url in it.

    How would we do this?

    Here is the shortcode for the button:

    [button_blue link="http://www.mooedia.co.uk/?page_id=1323"]Buy Now [/button_blue]

    How could we incorporate the popup code from your plugin to make it work when the button is clicked?

    [popup url="http://popupurl.com']LINK TEXT[/popup]

    Many thanks for your help.

    We would like to enable the popup

    • Garrett says:

      Hi Tom, sorry for the late reply. Well, the popup shortcode generates a link and I’m assuming your button_blue shortcode generates a link as well. So they wouldn’t really work together as just shortcodes.

      Not sure of your level of html/css, but what I would recommend is just use the popup shortcode and add the class attribute (see documentation in this post). Then you can style that class with the same css as the blue_button uses. Hope that helps,

      -G

  3. Robert says:

    I’m wondering how to get the popup to open when the link is a menu item. I’m trying to create a popup that has a music player inside it and want to link to be on the main menu. How would I go about tackling this?

  4. John says:

    Can you ad an option for no resizing the popup window?
    Thanks

  5. Jay says:

    Hey man, just wanted to say thanks for your help today. Nothing better than seeing a good useful plugin have top notch support. I owe you big time! Keep up the good work :D

  6. Jacque says:

    Maybe I can’t do this!
    Tried to use your popup from an image map. Was elated when it worked exactly as I hoped, BUT when I actually published (it still worked) it dropped the code from the editor with the result that some code was displayed below the image.

    Apparently wordpress 3.3.1 doesn’t like your code and drops it from the editor, even though it seems to function.

    Did I maybe miss a step?

    • Garrett says:

      Hi Jacque,

      Thanks for your comment. Hmm, I’ve never tried using an image map with this plugin so I can’t give you a complete answer, but I’m using WordPress 3.3.1 on this site and the plugin doesn’t have any issues (with text or image links). Can you post a link to an example of what it’s doing?

      -Garrett

      • Jacque says:

        I’m sorry, as a result of the problem I pursued another approach which works.
        I didn’t maintain your plug-in.

        The problem was that the code to call the popup would simply disappear from the editor once published.

  7. Edgar says:

    Hi, I love the plugin but I dont know how to use an image instead of text please help.

  8. I’m glad that you shared this helpful info with us,keep doing your great job.

  9. david says:

    hi. How do we hide the URL in the link of the pop window? Is there a way or setting not to show the Url on the popup window? thanks, i hope you can help me. :-)

  10. CollinVierra says:

    Is there any way to change the font attributes of the link text? (eg. size, color, etc.)

  11. CollinVierra says:

    Also, is there any way to open the link in a simple blank page w/o the menu, header, widgets, etc. (assuming I’m linking to one of my website’s pages)? thanks!

  12. Username says:

    is it possible to get rid of the bullet points for the widget links?

Trackbacks/Pingbacks

  1. [...] 7. Simple Popup Plugin Com este plugin poderá apresentar o que bem desejar com um simples pop-up. Artigos, publicidade, newsletters, etc. [...]

  2. [...] 7. Simple Popup Plugin Com este plugin poderá apresentar o que bem desejar com um simples pop-up. Artigos, publicidade, newsletters, etc. [...]

  3. [...] Simpele Pop-Up Plugin Een heel effectieve manier van reclame maken is via een pop-up. Dit is de ultieme manier om dat voor elkaar te krijgen. [...]

  4. [...] 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 [...]

  5. [...] Simple Popup Plugin “makes it easy to create a simple, modifiable popup window” [...]

  6. Programa says:

    [...] ver Publicado en Sin [...]

Leave a Reply