• Resolved Septy

    (@septychasanah)


    Hi Simon,

    Not my website and I get a job to tweak some layout. I haven’t noticed earlier if the slider working or not because of tweaking (just move one section to the bottom).

    Slider appear in wordpress customizer but not in actual page.
    I have try change all css id, clear cache, deactivate and delete and reinstall. The problem still the same. Can you help?

    on firefox console:
    Uncaught ReferenceError: jQuery is not defined
    <anonymous> https://blog.e2language.com/:175
    blog.e2language.com:175:1
    Uncaught TypeError: a is undefined
    <anonymous> https://blog.e2language.com/wp-content/plugins/slide-anything/owl-carousel/owl.carousel.min.js:6

    on chrome console:
    (index):175 Uncaught ReferenceError: jQuery is not defined
    at (index):175
    (anonymous) @ (index):175
    owl.carousel.min.js:6 Uncaught TypeError: Cannot read property ‘fn’ of undefined
    at owl.carousel.min.js:6
    at owl.carousel.min.js:6

    • This topic was modified 4 years, 6 months ago by Septy.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author simonpedge

    (@simonpedge)

    Ok, the first error is the clue here. Slide Anything (as does many WP plugins) requires jQuery – it is written using jQuery.

    This could be a timing issue, the loading of jQuery has been deferred to the end of the page load in order to speed page-load times (some optimisation plugins do this) – and jQuery is being loaded after the Slide Anything JavaScript/jQuery code.

    There is a setting I’ve added to Slide Anything called “DOMContentLoaded event” (under “Other Settings”) – try ticking this to see if this resolves the issue.

    Thread Starter Septy

    (@septychasanah)

    The “jQuery is not defined” error has gone but the “a/fn is undefined” still there.
    Plus new error:
    Uncaught TypeError: jQuery(…).owlCarousel is not a function
    at HTMLDocument.<anonymous> ((index):176)

    Plugin Author simonpedge

    (@simonpedge)

    Are you running any optimization/caching plugins on the site?
    If so, try disabling these and doing a test.

    Thread Starter Septy

    (@septychasanah)

    You’re right. There is one plugin optimization by domain hosting that running. I disabled it and voila!.

    Thank you

    Plugin Author simonpedge

    (@simonpedge)

    It is probably a setting within that plugin to ‘combine and minimise’ JavaScript code – so maybe you can just disable this particular function within the plugin settings.

    Thread Starter Septy

    (@septychasanah)

    Thanks. unticked them all

    Plugin Author simonpedge

    (@simonpedge)

    Ok, glad we got it resolved ??

    Will mark this thread as closed.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Slide anything slider isn’t loaded jQuery is not defined’ is closed to new replies.