jbradford2010
Forum Replies Created
-
@danieliser – It did not work. Would you be open to me hiring you to finish the rest?
Email me at [email protected].OK. Maybe I’m just really terrible at this. Bu This is what I have now. I was not sure if I was supposed to change the ‘#123’ to the ID as well but when I checked the ID live on the website the inputed numbers are the ones I got. Here is the code now and the link to my site is below it.
((function ($, document, undefined) { "use strict"; $('.custom_masonry_gallery_item_content').on('click', function () { var count = $.pm_cookie('1 day'); if (count === undefined) { count = 1; } else { count = parseInt(cookie, 10) + 1; } // Open popup popmake-15751 if count >= 3. if (count >= 3) { $('popmake-15751popmake-123')').popmake('open'); } else { $.pm_cookie( '"triple_click_button_check"', // Cookie Name (no spaces) count, // Cookie Value null, // Cookie Time : null = session, otherwise "1 day" '/' // Path, / means sitewide ); } }); jQuery, document));
I was wanting it to reset every day. I have added the code properly with all the changes and I’m not getting the popup after three clicks. I have tried it with the popmake ID number and name and still nothing. Also, should I have the pop up still linked to the specific page I want it to appear on in the popupmaker editor in order for this to work? I have tried almost every combination of things I would know to do. I even created a whole new popup just to see if I could get it ti appear and still nothing. Any help would be great. Yes I plan on supporting because I believe this can work and the support for this plugin is amazing. This is what mine looks like.
((function ($, document, undefined) { "use strict"; $('.custom_masonry_gallery_item_content').on('click', function () { var count = $.pm_cookie('1 day'); if (count === undefined) { count = 1; } else { count = parseInt(cookie, 10) + 1; } // Open popup popmake-new-winner if count >= 3. if (count >= 3) { $('popmake-new-winner').popmake('open'); } else { $.pm_cookie( '1 day', count, null, // Null for sessions (close browser clears it), otherwise use something like "1 week 2 days 3 hours". '/' ); } }); jQuery, document));
If I’m doing something wrong please let me know. Thank you.
@danieliser – Sorry for not being clear. I wanted to change it for it not to open until the css target specified has been clicked 3 times. It opens after being clicked once. I want to change it to open after 3 clicks. Thank you.
@danieliser – I did finally get it to work. Just had to identify the exact class that was being clicked. Also, could you tell me file location in back end that will let me set the “click”. I want to be bale to change it from one click to about 3 or 4 clicks.
Thanks!
@danieliser – I have tried using multiple classes and I still can’t seem to get it the work.
This is what I’m working with. Picture.
I tried inserting the “wpb_wrapper” class ID but it is not working. Thanks.