Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function($) {
- //add popup functionality to all image links
- $('a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"]').magnificPopup({type:'image'});
- //initialize for wordpress galleries
- $('.gallery').magnificPopup({
- delegate: 'a',
- type: 'image',
- gallery: {
- enabled: true
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement