Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to add an X button to the popup? #4

Closed
vannemic opened this issue Aug 14, 2011 · 3 comments
Closed

Is there a way to add an X button to the popup? #4

vannemic opened this issue Aug 14, 2011 · 3 comments

Comments

@vannemic
Copy link

Hi,

I am using your plugin but a lot of people who use my site say that it would be very helpful to have an X button to close the popup window, because some of them don't know to just click anywhere. The X could just be set to the side or something, so that they would still be able to click anywhere to close the window, but they could have an indication of where they can click.

Thanks and please let me know if this is possible and how I can do this!

  • vannemic
@FinelySliced
Copy link
Owner

Hi vannemic - yep this is something I'm going to build in as an option in the next update.

However in the meantime you can easily add this yourself. Just include an element for the close button, and call the close_modal function on click. The same way it's called on #lean_overlay.

@vannemic
Copy link
Author

could you write it for me if its just a quick thing and tell me where to put it? I think I know how to do it but i dont want to mess anything up.

Here is the image of the X that I would like to use: http://f.cl.ly/items/0T1X370h3U0E1T1C3T3F/CloseButtonNew.png

Thanks again!

  • vannemic

@FinelySliced
Copy link
Owner

Added closeButton to the options!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants