WordPress.org

Support

Support » Themes and Templates » [Resolved] jCarousel

[Resolved] jCarousel

  • arav369

    @arav369

    Hi,

    I am migrating a website from ExpressionEngine to WordPress. I am trying to use jCarousel to have a carousel of my 5 recent posts that toggle/slide between themselves for every 5 seconds. I do have the code for this from my old website. But, in WordPress, when I use the same code, the dynamic jQuery for the jCarousel is not getting generated.
    Please let me know if I am missing anything here. The error I am getting is this :
    Uncaught TypeError: Object #<Object> has no method ‘jcarousel’
    What are the possible causes for this error?

    Thanks in advance,

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Andrew Nevins

    @anevins

    You’re not including the jcarousel JavaScript file in the webpage.

    arav369

    @arav369

    Hi Andrew,

    Thank you for the response.

    I did include the jCarousel javascript file in the webpage before the script loads. Even then it is not working.
    What else could be the mistake??

    Thanks in advance,

    Moderator Andrew Nevins

    @anevins

    Does this solution apply?

    arav369

    @arav369

    Hi Andrew,

    I checked the script tags in my source file. They all are properly closed. Could the issue be because of a css error such as lack of space for the carousel images or something in that regard?
    I feel I am missing something basic and simple here. Please help me in this regard.

    Thanks in advance.

    [ Please do not bump, that’s not permitted here. ]

    arav369

    @arav369

    Hi,

    I get the following error :
    Uncaught TypeError: Object #<Object> has no method 'jcarousel'

    This is because the argument passed to the javascript function is of type b.fn.init.b instead of o.fn.init.o ? Any idea about whats going wrong here??

    Thanks in advance,

    Moderator Andrew Nevins

    @anevins

    Are there no other errors in your browser console log?

    arav369

    @arav369

    I got a couple of warnings that are completely unrelated to this. In general, if you have the jQuery, jcarousel libraries, the static HTML code and the script used to load the dynamic content, the jCarousel should work right? Or do I need some thing more than this?

    Thanks in advance,

    Moderator Andrew Nevins

    @anevins

    I’m going to reinforce my original comment on the supposition that the jCarousel JavaScript file isn’t linked or loading in the page, just because this has always been the case for me with similar errors.

    Short version:
    I don’t know the answer.

    arav369

    @arav369

    The jCarousel file is opening properly in the browser Developer console? This means that it is linked properly right?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] jCarousel’ is closed to new replies.
Skip to toolbar