• Resolved mrbalkon

    (@mrbalkon)


    I thin, you guys need do somethimg like this, cause there are some console errors in some pages

    _________________________
    document.addEventListener( ‘DOMContentLoaded’, function() {
    // This is a dirty method, but there is no hook in WordPress to add attributes to the commenting form.

    try{
    document
    .getElementById( ‘respond’ )
    .querySelector( ‘form’ )
    .setAttribute( ‘enctype’, ‘multipart/form-data’ );
    } catch(e){
    // console.log(e);
    }

    }

    );

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘try-catch’ is closed to new replies.