JQuery UI Elements

Hello!

I’m trying to implement some previous work done in JQuery UI into my XTheme website. I have successfully (at least I think I have) enqueued the JQuery JS and CSS into my child theme, but whenever I try to implement any JQuery UI elements they do not appear.

My example URL is: https://www.comdoc.com/save-example/

I’m simply trying to create a JQuery UI slider with their example code. For the time being, I have entered everything into a Raw Code element, including the tags, but have tried doing it through the custom JS tab as well.

Thanks for any assistance!

Hi there,

There is an error in the custom code that you have added.

To check for Javascript errors through the console, please check this link:

https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors

Hope this helps.

Thanks, Jade. I didn’t realize it was throwing an error at first since I essentially just copied and pasted the code from the JQuery-UI documentation.

I eliminated the error, but still no luck in getting any elements to appear.

The code works fine in a straight HTML file, any ideas of what I could be missing?

[EDIT] I may have found it, might be missing a CSS file.

Glad you’ve sorted it out :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.