• Resolved PaSquallor

    (@pdagrafica)


    Hello I want to insert a checkbox. Where you are asked: If you want to display the pop-up in the other pages tick the checkbox.

    I improvvisatoun code …. but I think it lacks a javascript code in head

    <p class=”checkbox-label”>
    <input type=”checkbox” value=”do-not-show” name=”showagain” id=”showagain” class=”showagain”>
    <label for=”showagain”>Do not show this popup again</label>
    </p>

    but …. beyond my improvisation, you have a solution?

    thanks!

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

Viewing 15 replies - 1 through 15 (of 25 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @PaSquallor – Hmm, can you elaborate on the bigger picture. I vaguely get what your asking for but not in the context of how you describe using it. For instance we have a terms & conditions popup extension that once they agree & check the box it doesn’t show up any more. Just depends on how you want it to work and flow. All things possible with this plugin.

    Thread Starter PaSquallor

    (@pdagrafica)

    I Occor a very simple thing, look at the example of this pop up

    LINK

    Plugin Author Daniel Iser

    (@danieliser)

    @PaSquallor – Ok got it, in your case your going to need to write some custom JS that will on checking that box close the popup and create the appropriate cookie.

    jQuery('#showagain').on('click', function () {
        jQuery('#popmake-123')
            .trigger('popmakeSetCookie.auto-open')
            .popmake('close');
    });

    The above JS does what your looking for. You need to change the popmake-123 to match your popups ID #, and you need to set up your auto open cookies but set the trigger to manual. Whatever cookie time you use there will be set when clicking the checkbox.

    Hope this helps.

    Thread Starter PaSquallor

    (@pdagrafica)

    in HEAD wright this

    jQuery('#showagain').on('click', function () {
        jQuery('#popmake-123')
            .trigger('popmakeSetCookie.auto-open')
            .popmake('close');
    });

    in popup body wright this :

    <p class="checkbox-label">
    <input type="checkbox" value="do-not-show" name="showagain" id="showagain" class="showagain">
    <label for="showagain">Do not show this popup again</label>
    </p>

    You need to change the popmake-123 to match your popups ID #,

    I did not understand what to do

    thanks!

    Plugin Author Daniel Iser

    (@danieliser)

    @PaSquallor – Your popup just like any post or page has a unique ID #. When you go to Popup Maker -> All Popups you will see them listed in the classes column of the table. Copy the popmake-# and replace the 123 above with the correct ID #.

    Also be sure you wrap your JS with the appropriate <script> tags, and you would be better off putting it in the footer after wp_footer();

    Hope this helps.

    Thread Starter PaSquallor

    (@pdagrafica)

    does not work, here is the link

    Plugin Author Daniel Iser

    (@danieliser)

    @PaSquallor – As I mentioned you need to move your script to the footer. jQuery is not available yet where you have it now which is causing a JS error.

    Thread Starter PaSquallor

    (@pdagrafica)

    does not work

    Plugin Author Daniel Iser

    (@danieliser)

    @PaSquallor – Looking at the site, the script is still in the head and above all other JS. It will never work there. jQuery must be loaded before that script is run. You need to move it to the footer below wp_footer(); That guarantees all other JS is loaded first.

    Hope that helps.

    Thread Starter PaSquallor

    (@pdagrafica)

    is in the footer before the </ html>, clear your history

    Plugin Author Daniel Iser

    (@danieliser)

    @PaSquallor – Do you have server caching enabled that needs clearing? I am using private browser and tried multiple browsers, still in the head not the footer.

    Thread Starter PaSquallor

    (@pdagrafica)

    Plugin Author Daniel Iser

    (@danieliser)

    @PaSquallor – That link doesn’t load for me. Looking at the HTML your site is using Super Cache, may need to be cleared, logged in users don’t get cached copies so you may be getting a different result than me.

    This is at the bottom of your source.
    <!– Cached page generated by WP-Super-Cache on 2015-08-31 16:49:50 –>

    Thread Starter PaSquallor

    (@pdagrafica)

    I have to disable the plugin?

    Plugin Author Daniel Iser

    (@danieliser)

    @PaSquallor – You don’t have to disable it. If you look on your Admin Bar there is likely a menu item for Super Cache. You should be able to find a Clear/Empty Cache button there as well. Clicking that will clear it out.

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘DO NOT SHOW THIS POPUP AGAIN’ is closed to new replies.