• Resolved svengalichimp

    (@svengalichimp)


    Trying to make site ADA compliant. Disabled users need “onkeypress” rather than “onclick” as some must tab through elements rather than using a mouse. I can’t edit the code as new updates to plugin would override. Suggestions?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Zhanna Khachatryan

    (@zhannak)

    Hi @svengalichimp,

    Thanks for your inquiry.

    Dear user, we don’t have ADA compliance now, but you can try this solution.

    To open the lightbox please add the below JS code, in a JS file which will not be updated, your theme may have such a section for custom JS. If it doesn’t have you can install such a plugin that allows adding custom JS there are some free such plugins available.

    jQuery( ".bwg_lightbox .bwg-item0, .bwg_lightbox .bwg_slide, .bwg_lightbox .bwg-carousel-image, .bwg_lightbox .bwg-title1" ).on("onkeypress", function ( event ) {
       event.stopPropagation();
       event.preventDefault();
       var that = jQuery(this).closest('a');
       if ( !bwg_touch_flag ) {
         bwg_touch_flag = true;
         setTimeout( function () {
           bwg_touch_flag = false;
         }, 100 );
         bwg_gallery_box( jQuery( that ).attr( "data-image-id" ), jQuery( that ).closest( '.bwg_container' ) );
         return false;
       }
     });
    
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.