Simple popup with jQuery

Today I have done one small step in my WordPress theme. I want to show you simple popup page with jQuery. But first of all my popup has few requirements.

  • Popup should have variable height.
  • Content under popup layer not suppose to move.
  • After closing popup user should go back to the same point where he had opened popup.

How it works

popup_jquery

  1. Hiding scroll of <body>.
  2. Using scroll of #page for all content.
  3. #modal-border and #page using with fixed position.

Download ZIP