Easy Modal
popups in minutes

  • Log in
Skip to content
  • Features
  • Addons
  • Documentation
  • Support
  • Blog

Home / Login Modals / Login Modal Example

Login Modal Example

Login Modal Example

[edd_social_discount]

This entry was posted in . Bookmark the permalink.
Posted on September 16, 2014September 16, 2014 by waltmesser
No comments
←Login Modals

Recent Posts

  • Load a modal entirely from JS
  • Add Easy Modal options to custom post types.
  • Release Notes – Easy Modal – Version 2.0.15
  • Release Notes – Easy Modal – Version 2.0.14
  • Release Notes – Easy Modal – Versions 2.0.12 to 2.0.13 Summary
EasyModal

News. Updates. Releases. Deals. Resources.

@EasyModal

Subscribe to our
Mailing List for important News & Updates

A Wizard WordPress Solution

Social Media

  • Like us on Facebook
  • Follow us on Twitter
  • Subscribe to our RSS Feed

Resources & Support

  • Documentation
  • Frequently Asked Questions
  • Support

From the Blog

  • Load a modal entirely from JS

    BB product pages use JS to create and append modal to page using settings from a non loaded modal. Create empty modal to theme and apply settings to. Load the modal like so $(document).on('click', '.product .panel-preview .button', function(e){ var $this = $(this); e.preventDefault(); e.stopPropagation(); if(!$('#eModal-Panel-Preview').length) { var modal = $('

    '); modal.append($('img', $this.parent().clone())); $('img', modal).removeAttr('width'); modal.append('×'); modal.appendTo('body'); modal.emodal(easymodal.modals[1]); } $('#eModal-Panel-Preview').emodal('open'); });

  • Add Easy Modal options to custom post types.

    If you have custom post types set up either via a plugin or theme you may want to add modals to these post types. To show the easy modal options panel for custom post types add the following to your themes functions.php file. Simply change the post types added below to match those you are using.

    add_filter('em_post_types', 'my_em_post_types');
    function my_em_post_types($post_types)
    {
        $post_types[] = 'product';
        $post_types[] = 'faq';
        $post_types[] = 'article';
        $post_types[] = 'video';
        $post_types[] = 'diy';
        return $post_types;
    }
    

Affiliate Program | Contact Us | Terms & Conditions ©2013 Easy Modal Plugin for WordPress | Powered by WordPress