• Hi,

    I’m running iamone on a fully patched WP install. I’m getting jscript errors when viewing any sub-page on the site as follows:

    Uncaught TypeError: jQuery.supersized is not a function(anonymous function)
    @ (index):75m.Callbacks.j
    @ jquery.js?ver=1.11.3:2m.Callbacks.k.fireWith
    @ jquery.js?ver=1.11.3:2m.extend.ready
    @ jquery.js?ver=1.11.3:2J
    @ jquery.js?ver=1.11.3:2

    This works fine on the main screen, but not on any subpage on the site (and as such breaks other jscript such as gcal embeds, etc). Looks like this comes from functions.php – is there a way to fix this?

Viewing 1 replies (of 1 total)
  • Thread Starter coatesg

    (@coatesg)

    OK – so the fix is to move the following 3 lines outside of the if block which tests if it is the front page in functions.php at line 136 onwards:

    wp_enqueue_script( 'skt_iamone-supersized-easing',get_template_directory_uri() . '/js/jquery.easing.min.js', array('jquery') );
    wp_enqueue_script( 'skt_iamone-supersized-slider', get_template_directory_uri() . '/js/supersized.3.2.7.min.js', array('jquery') );
    wp_enqueue_script( 'skt_iamone-supersized-shutter', get_template_directory_uri() . '/js/supersized.shutter.js', array('jquery') );

    Can this be build into an update, to save having to have my own child theme to enqueue these and avoid the fix getting blatted each time the theme is updated?

Viewing 1 replies (of 1 total)
  • The topic ‘jQuery.supersized error on site sub-pages.’ is closed to new replies.