• Nothing displayed although DOM elements are on the page.

    I’ve excluded all Twenty20 scripts and CSS and have gone as far as outright disabling Autoptimize. Still nothing showing.

    Tried with and without JSMigrate.

    jquery.min.js?ver=3.5.1:2 Uncaught TypeError: e.indexOf is not a function
    at S.fn.init.S.fn.load (jquery.min.js?ver=3.5.1:2)

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

Viewing 1 replies (of 1 total)
  • Solution:
    If you use it with the shortcode:
    Open “\wp-content\plugins\twenty20\inc\twenty20-shortcode.php”
    find line 75
    $output .= '<script>jQuery(window).load(function(){';
    and replace it with:
    $output .= '<script>jQuery(window).on("load", function(){';
    Save & close.

    If you use the widget:
    Open “\wp-content\plugins\twenty20\inc\widget-twenty20.php”
    find line 61
    jQuery(window).load(function(){
    and replace it with:
    jQuery(window).on('load', function(){
    Save & close.

    That’s it! Cheers!

    Give a brother a beer

Viewing 1 replies (of 1 total)
  • The topic ‘JS Error since WP 5.6’ is closed to new replies.