// Magnific Popup - Inline Content Enabler function inline_popup_enabler(){ ?> <script> (function($){ $(window).load(function() { $('.open-popup-link a').magnificPopup({ type:'inline', midClick: true }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'inline_popup_enabler'); // Get Started Lightbox function get_started_lightbox() { ?> <div id="get_started" class="white-popup narrow mfp-hide"> <div class="lightbox_inner"> <div class="lightbox-title"><h3>Lorem ipsum dolor sit amet, consectetur adipiscing elit sed. do eiusmod tempor incididunt ut labore et dolore magna aliqua.</h3></div> <div class="lightbox-form contact-form"><?php echo do_shortcode('[gravityform id="2" title="false" description="false" ajax="true" tabindex="66565"]') ?></div> </div> </div> <?php } add_action('wp_footer', 'get_started_lightbox');
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter