redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

slider dont work

Open Abu-Taymiyyah opened this issue 13 years ago • 12 comments

When one use the slider its comes the javascript error:

jQuery(...).slider is not a function

Abu-Taymiyyah avatar Oct 02 '13 23:10 Abu-Taymiyyah

It works only if one have also the media type active on the site... otherwise not.

Abu-Taymiyyah avatar Oct 02 '13 23:10 Abu-Taymiyyah

unbenannt

Without the media type and here comes the error.

And here with media type:

unbenannt

Abu-Taymiyyah avatar Oct 02 '13 23:10 Abu-Taymiyyah

Are you quire sure it's the media field that causes the issue?

dovy avatar Oct 02 '13 23:10 dovy

I am almost sure, because i tested it and its work without the other types, except the media field. Only when the media type is on the site, then its work. The Jquery-ui slider.js its not load without the media type.

Abu-Taymiyyah avatar Oct 02 '13 23:10 Abu-Taymiyyah

So odd. I'll have to find a way to add it without the media.

dovy avatar Oct 02 '13 23:10 dovy

Without media field:

unbenannt

With media field the ui slider is load:

unbenannt

Abu-Taymiyyah avatar Oct 02 '13 23:10 Abu-Taymiyyah

Give that a try.

dovy avatar Oct 02 '13 23:10 dovy

Add to the slider.php

   wp_enqueue_script('jquery-ui-slider');

and it works.

Abu-Taymiyyah avatar Oct 02 '13 23:10 Abu-Taymiyyah

Give the code i just pushed a try. Does that, but in another way.

dovy avatar Oct 02 '13 23:10 dovy

aa ok your a faster hehe. Thanks. i test wait.

Abu-Taymiyyah avatar Oct 02 '13 23:10 Abu-Taymiyyah

Now its works. Thanks.

Abu-Taymiyyah avatar Oct 02 '13 23:10 Abu-Taymiyyah

You're welcome.

dovy avatar Oct 02 '13 23:10 dovy