Eddy La
asked 8 years ago

Hello,

Your theme is nice but I want to disable the keyboard navigation system on posts. How can I do that ?

Best regards,

Eddy

1 Answers
DominicStaff
answered 8 years ago

To disable keyboard navigation in the single post of DW Argo, you can open the single.js file in the folder path “wp-content\themes\dw-argo\js”. Find from line 62 to line 74, remove the following code:

$(document).on('keyup',function(event){
        if( ! ( $.browser.msie && parseInt( $.browser.version ) <= 9 ) ) {
            // var keycode = event.which || event.keyCode;
            // switch(keycode) {
                case 39://next
                    dw_get_adjacent_post( true );
                    break;
                case 37://previous
                    dw_get_adjacent_post() ;
                    break;
            }
        }
    });
Powered by DW Question & Answer Pro