WordPress.org

Forums

Anything Popup
Changing location of popup window (2 posts)

  1. thomasmiller68
    Member
    Posted 3 years ago #

    I'm having trouble figuring out how to change the position of the popup box when it comes up. Currently it comes up in the default location which is the top left corner directly in the middle of my display. I would like for it to come up more in the middle or even up in the top left corner so that the user does not have to scroll over to close the popup. I've read some things on how to change the java script but im having trouble figuring out exactly what it is that i need to change/do.

    http://wordpress.org/extend/plugins/anything-popup/

  2. JRomePalk79
    Member
    Posted 2 years ago #

    Go to the plugins editor in your dashboard and select anything-popup/anything-popup.js scroll down (not far from the top) until you find this lines:

    formdiv.style.top = pt.y + "-200px";
    formdiv.style.left = pt.x + "-550px";

    The numbers -200 and -550 are not standard values (can't remember the default ones, sorry) but my own values which will make the popup-window appear below the link. It doesn't matter where you place the link or imagelink, it will always appear right under it. You have to put in your own values and experiment to find the suitable location for your pop-up window.

    You can see my example here

    you have to click on the red stitched button in the right corner under the navigation-bar, to get the pop-up window

    I hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic