Viewing 5 replies - 1 through 5 (of 5 total)
  • ferdiaob

    (@ferdiaob)

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

    Plugin Author Cole Geissinger

    (@brainfestation)

    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

    Thread Starter garteth69

    (@garteth69)

    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

    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.

    @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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Re-Position Modal Pop Up’ is closed to new replies.