- This topic has 6 replies, 2 voices, and was last updated 3 years, 11 months ago by David.
-
AuthorPosts
-
April 5, 2020 at 5:35 am #1227185Michael
Hi guys,
I have been working on my mailchimp signup integration. I previously had it set up with no javascript, but this resulted in too many clicks and additional windows opening in order to complete a signup.
So I added in the javascript validation from mailchimp, and it seems to work only on Firefox desktop. If I try in mobile, the menu system, search and my newsletter pop up button no longer work. I tried Chrome and Opera desktop browsers too and seem to get the same issue.
https://www.dropbox.com/s/sgnytlwey5rthbq/mobile-screenshot.jpg?dl=0
I cannot work out why. The only thing I’ve added is the javascript here (and a bit of css for padding/width of messages):
https://www.dropbox.com/s/t75xg2jwrrqa1td/footer-snippet.jpg?dl=0
Caches have all been cleared. Please can you help me?
Michael.
April 5, 2020 at 6:49 am #1227235DavidStaffCustomer SupportHi there,
can you disable autoptimize – clear browser cache and retest.
April 5, 2020 at 7:23 am #1227264MichaelHi David,
How are you doing? Thank you for getting back to me ๐ I’ve disabled autoptimizer and cleared the browser caches and it seems to have helped, but for some reason the signup pop up button (the big + at the top right of the screen) still refuses to do anything. I’m not sure what’s going on at all, and our internet seems to be at a crawl today which makes it a bit of a challenge.
Michael.
April 5, 2020 at 8:43 am #1227476MichaelHi David,
I’m trying the MC4WP plugin to see if that helps. Is there a way to get the shortcode to work in a code snippet? I have the pop up code in a snippet, and added the shortcode to that, but it doesn’t work:
add_action( 'generate_after_footer_content','mm_insert_sticky_signup_after_footer_content' ); function mm_insert_sticky_signup_after_footer_content() { ?> <div class="signup"> <div class="signup-header">Sustainable Living</div> <span class="closebtn">ร</span> <div class="signup-container"> <p>Get new articles related to <em>sustainability</em> and <em>eco-friendly home decor</em> direct to your inbox. We respect your privacy.</p> [mc4wp_form id="3711"] </div> </div> <?php }
April 5, 2020 at 3:40 pm #1227845DavidStaffCustomer SupportNot sure of that will help but try adding the shortcode like so:
<?php echo do_shortcode('[name_of_shortcode]'); ?>
ref: https://developer.wordpress.org/reference/functions/do_shortcode/#user-contributed-notes
April 6, 2020 at 3:45 am #1228235MichaelThank you David ๐
April 6, 2020 at 4:56 am #1228306DavidStaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.