• kopas

    (@kopas)


    Hi i would like to open a popup window when a user clicks on a specific page in the Pages menu. The popup window should load an other php page. This should be for example a photo gallery.

    So a user clicks on a page called gallery and then a screen centered popup window should appear with the loaded photo gallery.

    Is this possible with WordPress and how? I have searched the forum but found no solution!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Adam Brown

    (@adamrbrown)

    Is this possible with WordPress and how? I have searched the forum but found no solution!

    Well, yeah, but not really as a WP feature. This is just HTML. To make a link open in a new window, then give it a target. But be advised that LOTS of people get annoyed by links that do that:

    <a href="" target="_blank">...</a>

    So a user clicks on a page called gallery and then a screen centered popup window should appear with the loaded photo gallery.

    Actually, this is a little more complex than just opening in a new window. This would take some javascript. Best bet is to search the plugins.

    theapparatus

    (@theapparatus)

    Dicuseed it here earlier:

    https://www.ads-software.com/support/topic/144071

    It’s a common topic though around here. You may want to search the forums for “open in a new window” for previous discussions on the topic.

    Thread Starter kopas

    (@kopas)

    This is not exactly what i want. The _blank just opens a window with a random size and location on screen. The window should be centered and with a specific size! In normal HTML i would include some piece of JavaScript code into the original window that would open the new centered popup but with wordpress i have no idea how to accomplish this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to create a popup window when clicking on page link?’ is closed to new replies.