jQuery(document).ready(function(){ $.magnificPopup.open({ items: { src: '#test-popup', type: 'inline' } }); $('.open-popup-link').magnificPopup('open'); });