ARees Posted July 7, 2022 Share Posted July 7, 2022 (edited) Site URL: https://www.angharadthompsonrees.com/-she-dreams-in-every-colour-collection Hi there, For some reason my MailerLite pop up on image has suddenly stopped working on the front end of desktop. It still works on mobile? I've fashioned a sign up button as the click through image that worked fine, but it's suddenly stopped working on desktop version only. It still works when testing on the back end in the "code injection" page, but not on the live version. I wondered if anyone else experienced this and found a solution? Many thanks, Angharad Edited July 7, 2022 by ARees Link to comment
tuanphan Posted July 7, 2022 Share Posted July 7, 2022 Which code did you add in backend? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
ARees Posted July 7, 2022 Author Share Posted July 7, 2022 Hi there, This is in the header code injecter: <!-- MailerLite Universal --> <script> (function(m,a,i,l,e,r){ m['MailerLiteObject']=e;function f(){ var c={ a:arguments,q:[]};var r=this.push(c);return "number"!=typeof r?r:f.bind(c.q);} f.q=f.q||[];m[e]=m[e]||f.bind(f.q);m[e].q=m[e].q||f.q;r=a.createElement(i); var _=a.getElementsByTagName(i)[0];r.async=1;r.src=l+'?v'+(~~(new Date().getTime()/1000000)); _.parentNode.insertBefore(r,_);})(window, document, 'script', 'https://static.mailerlite.com/js/universal.js', 'ml'); var ml_account = ml('accounts', '1705112', 'w0r0e4l1g3', 'load'); </script> <!-- End MailerLite Universal --> And the code for the 'pop cup on image clicks is' <a href="javascript:;" onclick="ml_account('webforms', '5680113', 'r5m6c8', 'show')"> <img src="https://static1.squarespace.com/static/61db98e06c746930c1305678/t/62846e674a0177118735f8ee/1652846183992/Screen+Shot+2022-05-18+at+1.55.52+pm.png"/> </a> It's strange how it still works on mobile device and not desktop? Can you see something I've done wrong here? HUGE thanks! Link to comment
ARees Posted July 8, 2022 Author Share Posted July 8, 2022 Found a work around! Just added to MailerLite code for a button pop, added 'class' and styled the button in the main website css section . Seems to work perfectly now if any one else has had the same problem. tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment