• Hello,

    So I’ve been trying for a few hours now to make the popup box open by default and not closed as it is right now, but didn’t have much success.

    So could you please tell me what code to edit and where so I can make the popup box open when the website loads? ( and then when the title bar is clicked it will just close/minimize it and so on )

    Thanks.

    https://wordpress.org/plugins/sticky-popup/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nemecu2dee

    (@nemecu2dee)

    Nice plugin support. 1 week without an answer. GG

    Hi nemecu2dee

    Did you find out how – and where to change the code ?
    I really would like the same.

    C yaa | Cheers
    Kimo

    I solved this one.

    To make the popup visible by default.
    Open class-sticky-popup.php
    find the position you use, then you may find “-“+contheight+”px”, this is the default value which is -xxxpx at first, change it to “0px” (1 one, not the 2nd one, the 2nd one is control the open class).

    Thanks Deardevils this really helped me. I wasn’t sure what exactly to change at first so have written down what I did here..

    As my position is ‘left’ the section of code relates to contwidth..

    jQuery( “.sticky-popup” ).css( “left”, “-“+contwidth+”px” );

    I changed to

    jQuery( “.sticky-popup” ).css( “left”, “0px”+contwidth+”px” );

    and my sticky popup animates in and is open initially.

    It seems to only close the second time it’s clicked but i can live with that

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Make the popup box open by default’ is closed to new replies.