Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1170908
    Andrei
    Participant

    I had an error with the above accolade, but I corrected it and it still doesn’t work.

    #1170972
    Rad
    Moderator

    Hi there,

    Would you mind providing your login credentials? On my test, seems like the click event is turned off on accordions. Like to disable this script while troubleshooting.

    
          jQuery(document).ready(function() {
       jQuery(document).on('hover','.thumbnails .zoom', function(){
    var photo_fullsize = jQuery(this).attr('href');
    jQuery('.woocommerce-main-image img').attr('src', photo_fullsize);
    });
    });
    jQuery(document).ready(function($){
    	$('.x-accordion-heading').click(function(){
                    $('.x-accordion-heading').next().toggle();
    		$('.accordion-body.collapse').hide();
    		$(this).next().toggle();
    	});
    });
    jQuery(".related.products h2").html("You may also like");    

    Thanks!

    #1171235
    Andrei
    Participant
    This reply has been marked as private.
    #1172527
    Paul R
    Moderator

    Hi Andrei,

    Please replace your code in Custom > Javascript with this.

    
    jQuery(document).ready(function() {
       jQuery(document).on('hover','.thumbnails .zoom', function(){
    var photo_fullsize = jQuery(this).attr('href');
    jQuery('.woocommerce-main-image img').attr('src', photo_fullsize);
    });
    });
    jQuery(document).ready(function($){
        $('.x-accordion-heading').on( "click touchend", function() {
                    $('.x-accordion-heading').next().toggle();
            $('.accordion-body.collapse').hide();
            $(this).next().toggle();
        });
    });
    jQuery(".related.products h2").html("You may also like");
    

    Hope that helps

    #1176716
    Andrei
    Participant

    Hi Paul,

    Thank you for your quick reply, but unfortunately it doesn’t work.

    #1176933
    Andrei
    Participant

    It works. Thank you very much. I appreciate it.

    #1176937
    Rupok
    Member

    You are welcome!

    Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.

    Thanks for using X.

    Cheers!

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