Using prettyPhoto Image Effect with NextGen Gallery

All of my themes come with a very nice image effect called “prettyPhoto”. It´s a lightbox clone that opens image links automatically in an overlay or modal window. You don´t need to do anything but link the inserted image in a post or page to its own file. pretty Photo detects image links automatically.

Although this is already a great feature on its own you can use this build-in functionality even more effective. NextGen Gallery is one of the best and most famous image gallery plugins for WordPress. One great thing about NextGen Gallery is the possibility to use various Javascript effects for displaying images. Thickbox – which is included in WordPress by default – is just one of them. Many others are already prepared but you can also use your own.


And this is where prettyPhoto comes into play. If you have NextGen Gallery installed and activated you go to the options page of the plugin. There you should see a tab called “Effects”. On this tab you can select from various Javascript effects. Select “own” as Javascript thumbnail effect and add the following line into the textbox:


Save the settings and navigate to your Gallery page. If you click on a thumbnail it will open in a nice prettyPhoto window.

Screenshot taken from Matthias Priebe

YouTube aktivieren?

Auf dieser Seite gibt es mind. ein YouTube Video. Cookies für diese Website wurden abgelehnt. Dadurch können keine YouTube Videos mehr angezeigt werden, weil YouTube ohne Cookies und Tracking Mechanismen nicht funktioniert. Willst du YouTube dennoch freischalten?