SHOW:
|
|
- or go back to the newest paste.
1 | jQuery(document).ready(function($) { | |
2 | - | //add |
2 | + | //add popup functionality to all image links |
3 | $('a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"]').magnificPopup({type:'image'}); | |
4 | //initialize for wordpress galleries | |
5 | $('.gallery').magnificPopup({ | |
6 | delegate: 'a', | |
7 | type: 'image', | |
8 | gallery: { | |
9 | enabled: true | |
10 | } | |
11 | }); | |
12 | }); |