WordPress.org

Forums

Alligator Popup
[resolved] position the popup (4 posts)

  1. vincentleleux
    Member
    Posted 1 year ago #

    Hi,
    I want to position the popup in the top left corner, how can I do that?

    Thanks

    http://wordpress.org/plugins/alligator-popup/

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Plugin Author

    Posted 1 year ago #

    There isn't an option built into the plugin to achieve this unless you create a customised version.

    To perform the customisation to enable this, edit the js/popup.js file to replace lines 8 + 9:

    var left = (screen.width/2) - (w/2);
    var top = (screen.height/2) - (h/2);

    with

    var left = 0;
    var top = 0;
  3. calebweeks
    Member
    Posted 10 months ago #

    Hi @cubecolour,

    How hard would it be to build in the option for a "top" / "left" alignment parameter to the default plugin?

    The whole discovery of Alligator Popup and the story behind it has been fun to read about (wrestling an alligator, etc.).

    Thank you for what the plugin is already "out of the box"!

    PS Editing the popup.js as you've instructed above and then updating the code when the plugin updates is totally okay if we really need the custom positioning. Just thought I'd ask to see. Great work on resolving all of these support topics, too!

  4. cubecolour
    ɹoʇɐɹǝpoɯ
    Plugin Author

    Posted 10 months ago #

    Glad you like the plugin. It shouldn't be hard to build the options in if someone was willing to sponsor the work.

    if you use a customised version of any plugin, you can prevent it from updating is to either rename it or change the version number to something stupidly high.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Alligator Popup
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic