WordPress.org

Forums

Easy Modal
[resolved] Cannot set height and width (3 posts)

  1. vonder86
    Member
    Posted 1 year ago #

    I am trying to set-up the height and width of the modal using shortcode, but it stays the same. I used the following shortcode:

    [modal id=Test height="480" width="300"]

    The modal is working, but the size is just random. I had more success with

    [modal id=Test size="small"] It assign a smaller width, but height is ignored.

    Is there any way I can do that (even hardcoding the value?) Also - what are the attributes of size: small, normal, large? What else - there is nothing about it on your website...

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

  2. danieliser
    Member
    Plugin Author

    Posted 1 year ago #

    The predefined sizes are all built for responsive website or content. They are roughly 30%-70% of screen width.

    You could define a height using #eModal-Test { height:200px; }

    Hope this helps.

  3. waltmesser
    Member
    Plugin Author

    Posted 9 months ago #

    In the latest version of Easy Modal, you can easily set your modal sizes any way you like in the WP Admin: Easy Modal -> Modals -> Your Modal -> Display Options

    See how easy it is here.

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