jQuery(function($) { $('.single-post .entry-content').find('a[href$=".gif"], a[href$=".jpg"], a[href$=".png"], a[href$=".bmp"]').magnificPopup({type:'image'}); });

https://agriculture.atomjet.com/wp-content/uploads/2016/10/cropped-aj-ag-logo.jpg