WordPress.org

Ready to get started?Download WordPress

Forums

WP Modal Login
[resolved] Re-Position Modal Pop Up (6 posts)

  1. garteth69
    Member
    Posted 9 months ago #

    Hello

    Can I ask is there a way to re-position the modal pop up?

    I have tried playing about with the .js but to no avail.

    Any help would be great.

    Thanks

    http://wordpress.org/plugins/wp-modal-login/

  2. ferdiaob
    Member
    Posted 9 months ago #

    CSS would control the position of the pop-up, not JS.

  3. Cole Geissinger
    Member
    Plugin Author

    Posted 9 months ago #

    The modal is set via JavaScript by calculating the center of the window and then injecting some CSS to make the placement. Not sure what kind of re-positioning you are looking for but adjusting these lines of code should get you some where. https://github.com/colegeissinger/wp-modal-login/blob/master/js/wp-modal-login.js#L16-L23

  4. garteth69
    Member
    Posted 9 months ago #

    Hello

    To be honest I would like to move the window upwards as I am using this plugin with Pie Registration plugin, and unfortunately the login box has some issues with displaying the registration details, where as if I could move the box towards the top of the page, they should all fit in.

    Regards

    G

  5. adamjd
    Member
    Posted 6 months ago #

    I'm trying to do the same as @garteth69. Whatever I do with values " var margin_top = ($(login_id).height() + 24) / 2;" - the window opens in the same place. I need to move the window up because people can't register on an iPhone - windows is too low for the submit button with the extra fields I've added.

  6. esmi
    Forum Moderator
    Posted 6 months ago #

    @adamjd: If you require assistance then, as per the Forum Welcome, please post your own topic. This 2 month old topic references an old version of WordPress.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.