Using the Gallery Password Box in your custom theme
The Gallery Password Box lets you put a simple form for users to enter a gallery password and be automatically taken to the gallery and allowed access if a valid password is given.
Traditionally with WordPress, you have to visit a page/post (or in our case a gallery) and then see the password prompt. We created the Gallery Password Box widget to let you put a simple form either inside your own WordPress theme (also can be used inside a Sunshine theme).
Users simply need to enter a password to any gallery and, if valid, will be taken directly to the gallery and through the password requirement to see the photos.
In your WordPress administration area, go to Appearance > Widgets