[Support request] Menu, Search and Pop Up Broken

Home Forums Support Menu, Search and Pop Up Broken

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1227185
    Michael

    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.

    #1227235
    David
    Staff
    Customer Support

    Hi there,

    can you disable autoptimize – clear browser cache and retest.

    #1227264
    Michael

    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.

    #1227476
    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 }
    #1227845
    David
    Staff
    Customer Support

    Not 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

    #1228235
    Michael

    Thank you David 🙂

    #1228306
    David
    Staff
    Customer Support
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.