Forums

Coda slider not working in WordPress (6 posts)

  1. on3advertising
    Member
    Posted 1 year ago #

    I have been tearing my eyes and hair out trying to figure out why I can't add a Coda Slider to one of my WordPress pages. Here is the link, it just sits there and loads as if non of the Javascript functionality is being picked up: http://www.compusoftdevelopment.com/slider/

    I got the Coda Slider from this website: http://www.ndoherty.biz/demos/coda-slider/2.0/

    This is what the entire html code looks like that I add to the WP page editor:

    [Large code excerpt removed by moderator. Per forum rules, please use the pastebin for all large code excerpts. It works better anyway.]

  2. Chris Olbekson
    Member
    Posted 1 year ago #

    There is an error in your js try changing it to below and see if it works.

    $().ready(function() {
    $('#coda-slider-2').codaSlider({
    autoSlide: true,
    autoHeight: false,
    dynamicArrows: false,
    autoSlideInterval: 4000,
    autoSlideStopWhenClicked: true
    });
    });
  3. nnash
    Member
    Posted 1 year ago #

    In addition to the above make sure you are enqueuing jQuery the right way and have your *.js files after wp_head();

  4. Mark / t31os
    Moderator
    Posted 1 year ago #

    If you're enqueuing JS, it should be done "before" wp_head, not after..

    Additionally this line...

    $().ready(function() {

    ..should probably read.

    jQuery(document).ready(function($) {

    You should use the jQuery var (no conflict) and not the default $ var when doing jQuery inside WordPress using the included jQuery library.

    http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers

  5. LeftClick
    Member
    Posted 1 year ago #

    Hi

    Great plugin. I am currently using Coda Slider on my website but I have been encountering a conflict problem.

    The coda slider works perfectly but plugins within the posts aren't working. The only thing it displays is the shortcode.

    Any ideas?

    Thanks
    Laura

  6. Jauhari
    Member
    Posted 1 year ago #

    Thanks it's worked now

Topic Closed

This topic has been closed to new replies.

About this Topic