• Resolved kbertsch

    (@kbertsch)


    Hello, just want to say first off love your plugin! However, I would like to be able to have a close button instead of just the ‘x’ in the corner or clicking off to the side. How should I do this? If you assign the “spu-class” to a button it cuts off the text for the most part on the button. I’ve also tried the bootstrap data-dismiss=”modal” and had no luck with that either.

    Thanks!

    https://ww.wp.xz.cn/plugins/popups/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Damian

    (@timersys)

    USe the spu-close class but also add a custom class to modify the css .
    eg:
    <button class="spu-close my-custom-close">CLOSE</button>

    The in your css somethign like:

    .spu-close.my-custom-close{
    position:relative;
    width:auto;
    margin: 20px auto;
    display: inline-block
    }

    Thread Starter kbertsch

    (@kbertsch)

    Awesome Damian. Worked great! I did have did add a height:auto; as well FYI. Thanks again!

    This worked for me too. Thanks for the excellent work!

    Plugin Author Damian

    (@timersys)

    This out of date. To create a close button use

    <button class="spu-close-popup my-custom-close">CLOSE</button>

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Close Button’ is closed to new replies.