WordPress.org

Ready to get started?Download WordPress

Forums

Really Simple Popup
[resolved] How do I set the width? (5 posts)

  1. SmoovP
    Member
    Posted 1 year ago #

    I love this plugin. Solves a big problem for me.

    My question is how do I set the width for the popup with html content pulled in from a different site?

    Example: http://kfskiosk.tacnewsroom.com/empty-legs/

    Click on the "Click Here To Check For Current Empty Legs" to see the popup in action.

    You can see that the pop up width is too wide for the page I'm pulling in.

    I would be enormously grateful for any help.

    http://wordpress.org/extend/plugins/really-simple-popup/

  2. huntlyc
    Member
    Plugin Author

    Posted 1 year ago #

    Hi SmoovP,

    Currently there is no easy way to do this, but I'm working on an update that will allow the user to individually set the width and height. I'll update you when this is done.

    Cheers,
    Huntly

  3. huntlyc
    Member
    Plugin Author

    Posted 1 year ago #

    Hi SmoovP,

    Just to let you know, I've updated the plugin (1.0.2) to allow you to set the width/height of an elament. Simple use the data attributes:

    data-popupheight="100" data-popupwidth="400"

    You need to use both for this to work properly...

    In your example you'll want to do something like this:

    <a class="hs-rsp-popup hiddendiv" href="http://keystoneaviation.com/empty-legs" data-popupheight="400" data-popupwidth="600">Popup Test (set width)</a>

    You can see a few examples here: http://huntlyrubytest.co.uk/popup-test/

    Let me know how you get on.

    Cheers,

  4. huntlyc
    Member
    Plugin Author

    Posted 1 year ago #

    Marking as resolved...

  5. SmoovP
    Member
    Posted 1 year ago #

    Huntly,

    Thanks, and I apologize for missing that you had replied and updated the plugin.

    I really appreciate it.

    patrick

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic