Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Modularity theme http://pobyworld.com I replaced the default slider handle in the content slider with a red arrow image. It worked perfectly for 2 years. Suddenly the arrow no longer slides through the thumbnail slider. Here's the css

#content-slider {width: 930px; height: 10px; z-index:1; margin-left:10px; position: relative; -moz-border-radius:4px;-webkit-border-radius:4px}

.ui-slider-handle { background: url(/wp-content/uploads/2010/05/arrow.png) no-repeat; height: 16px; width: 32px; overflow: hidden; position: absolute; top: -3px;margin-left:-10px;}

The js:

if ($(".ui-slider-handle", this.element).length == 0)
        $('<a href="#"></a>')
            .appendTo(this.element)
            .addClass("ui-slider-handle");

    if (o.values && o.values.length) {
        while ($(".ui-slider-handle", this.element).length < o.values.length)
            $('<a href="#"></a>')
                .appendTo(this.element)
                .addClass("ui-slider-handle");
    }

    this.handles = $(".ui-slider-handle", this.element)
        .addClass("ui-state-default"
            + " ui-corner-all");

Any ideas why it may have stopped working? Thank you ever so much!

share|improve this question

closed as too localized by toscho Sep 24 '12 at 1:38

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

Have you added plugins recently? You have a javascript conflict, I'm guessing it's due to the use of $ instead of jQuery. I see you're also loading the prototype and scriptaculous libraries which may be the source of the conflict.

share|improve this answer
Thank you for that. I have deactivated all plugins- now I can get the arrow to slide- but it doesn't slide through the thumbnails! – Christy Eller Jun 24 '12 at 0:40
hmm, not sure what the issue could be. your other option is to re-enable all of your plugins, and modify your js substituting jQuery for all instances of $ to get rid of the conflict. – Milo Jun 24 '12 at 2:09

Not the answer you're looking for? Browse other questions tagged or ask your own question.