danieliser on "[Plugin: Popup Maker] Second Popup on close of first popup"

ساخت وبلاگ

Hi, Is there a way to have a second popup launch when the close on first popup is clicked? Is this possible with the free version or do I need an extension, and if so how do I do it?

Thank you

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

@ictsource - You could try setting the Click Trigger on the second popup to use the extra selector targeting the first popups close button.

Set up Popup 1.
Set Up Popup 2.
- Add/Edit click trigger
- In the extra selectors field enter
- #popmake-123 .popmake-close
- Change 123 to match the ID # of Popup 1.

Hope that helps. Haven't tested but should work in theory.

Thanks, my first popup has an id of 66, I set up the second popup and added the click trigger #popmake-66 .popmake-close but the second one isn't popping up.

(The first popup has a delay of 10s and a close after 5 mins if the close isn't clicked, using the same cookie)

Your help is appreciated. Any ideas?

@ictsource - Do you have a link I can look at?

Yes, its http://getnoti.com

Thanks

@ictsource - Looks like you have an error in your custom JS.

Try this instead replace $ with jQuery

jQuery('#popmake-311').on('popmakeAfterClose', function () { jQuery('#popmake-66').popmake('open');
});

Hope that helps.

This is coding and no plugin for users

@anant01 - Not sure what you mean. They had this code on their site already, simply told them how to fix it. Please start a new topic if you have a different issue.

Hi danieliser, Thanks for your help, tried both methods you suggested and second popup not working. How about if I try a different approach and target the submit button on the first popup, could you suggest a method to do this?

Thanks again for your help.

@ictsource - I just tested it and found the issue. I am going to include a patch today that will make it work without the extra code, should be able to simply target it using the click selector after 1.4.9 today.

Just tested and works great now.

Hope that helps.

Forgot to add, remove that custom JS or you might see undesired behavior.

Please take a moment to rate and review the plugin and or support.

@ictsource - v1.4.9 is live. Give it a test.

Works great, thanks very much! One last question how would I target the submit (Yes) button on the first popup?

Thanks again

@ictsource - Can you elaborate on what your after? If you want to do something when the form is submitted there are much better ways :)

How to close a popup when form is submitted.

I have a link in a popup that allows the visitor to download a pdf, I would like a second popup to occur when they click the download link, is this possible, i.e. how do I target the link.

Many thanks again for your help

ictsource
Member
Posted 8 hours ago #

Hi danieliser, I managed to target the download link and the second popup occurs when the link is clicked, the only problem is the download link no longer downloads. I'm guessing this is because two actions (popup and download) are required from the same link which may not be possible?

Please can you let me know if there is a way around this?

Many thanks again.

@ictsource - This feature will be available in the free version in the near future, but currently it requires a bit of custom JS. Essentially your right, currently we disable default browser click functionality, as you typically wouldn't want the browser to follow a link when opening the popup, the page would change and you wouldn't see the popup.

But your use case is valid and comes up from time to time.

jQuery('.download-link').on('click', function () { jQuery('#popmake-66').popmake('open');
});

That is what you need. Also remove the standard popmake-# class from that link as well as any existing click triggers you pointed at it.

Hope that helps.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 118 تاريخ : سه شنبه 14 ارديبهشت 1395 ساعت: 0:43