WordPress.org

Forums

Easy Modal
Loading Image before Modal Open (6 posts)

  1. andrezasv
    Member
    Posted 2 years ago #

    Hi,

    How can I insert a loading image (.gif) before the window modal open?

    https://wordpress.org/plugins/easy-modal/

  2. danieliser
    Member
    Plugin Author

    Posted 2 years ago #

    The modal should open immediately so im not sure why you would even need one.

  3. andrezasv
    Member
    Posted 2 years ago #

    Because I will open an iframe within the modal, so it would be interesting to show a loading image until the iframe is ready. So, the modal will open only when the iframe is loaded.

  4. danieliser
    Member
    Plugin Author

    Posted 2 years ago #

    You can add it to the background of the overlay using css.

    .modal-overlay { background-image:url(path/to/image.gif); background-position:center center; }

    You may need to use !important in your css rules.

    Hope this helps,

    Please take a moment to rate and review the plugin and or support here.

  5. andrezasv
    Member
    Posted 2 years ago #

    I tried this code, but nothing worked. =/

  6. danieliser
    Member
    Plugin Author

    Posted 2 years ago #

    what was the code you used?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Modal
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.