Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1387577
    Michael C
    Participant

    Building a new site and all is well except for accordions on mobile. I have looked thru all the forums and have tried all the ccs and javascript codes that you have provided to others, but none are correcting the challenge on this site.

    The accordions are in the “Areas of Law” pages.

    Thank you in advance.

    #1387579
    Michael C
    Participant
    This reply has been marked as private.
    #1387590
    Rupok
    Member

    Hi there,

    I guess you forgot to share your URL. Let’s give it as well.

    Cheers!

    #1387648
    Michael C
    Participant
    This reply has been marked as private.
    #1387861
    Nabeel A
    Moderator

    Hi again,

    To fix the issue, please add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript

    jQuery( function($) {
    	$('.x-accordion-heading a').on('click', function( e ){
    		setTimeout( function() { 
    			$('html, body').stop().stop();
    		}, 100 );
    	});
    	$(document).ready(function() {
    		$('.x-accordion-heading a').off('click touchstart touchend');
    	});
    
    });

    Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!

    #1388974
    Michael C
    Participant

    Another perfect piece of code from X. You guys ROCK! Thx

    #1389019
    Joao
    Moderator

    Glad to hear it 🙂

  • <script> jQuery(function($){ $("#no-reply-1387577 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>