Site logo

Archived topic

Menu, Search and Pop Up Broken

6 replies · Started by Michael on April 5, 2020

Viewing posts 1–7 of 7

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.

Hi there,

can you disable autoptimize - clear browser cache and retest.

Hi 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.

Hi 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 }

Thank you David :)

You're welcome

This archived topic is closed to new replies.