Ready to get started?Download WordPress


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

  1. garteth69
    Posted 1 year ago #


    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.



  2. ferdiaob
    Posted 1 year ago #

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

  3. Cole Geissinger
    Plugin Author

    Posted 1 year 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
    Posted 1 year ago #


    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.



  5. adamjd
    Posted 1 year 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 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.