• Resolved aseliot

    (@aseliot)


    So we have a plugin and jquery works on it (although inspect element does not reveal any <script> tag containing jquery anywhere) but jquery-ui loaded by another plugin (our system consist of multiple plugins) is not recognized.

    It says:
    jQuery(…).dialog is not a function

    Not i’ve read up on how to include jquery and scripts properly. So at first we just included them in the HTML but now that we are almost done we are trying to get it load via wp_enqueue script. Thing is that this doesn’t seem to work as we have a onready that shows the plugin once it has done rendering otherwise it will momentarily show all content before putting them in the jquery tabs.

    We have everything except jqueryui working now with wp_print_scripts, I have however read that we are supposed to used enqueue, but this simply doesn’t work. I’ve read many things about including jquery properly in plugins but it seems like everyone is saying that enqueue should work while it doesn’t seem to do anything.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter aseliot

    (@aseliot)

    We’ve already disabled all the plugins and tried multiple things but nothing seems to work for us for some reason.

    Thread Starter aseliot

    (@aseliot)

    We had to use jquery-ui-core and then jquery-ui-dialog instead of every example we found that said to enqueue jquery-ui. Also changed all the $ to JQuery for non-conflict mode.

    the enqueue hook still does nothing for us, we just put the enqueue’s into a script and included that into the index which also seems to work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Jqueryui in plugin not recognized’ is closed to new replies.