1

enter image description here

Please guys, how can one use jquery sortable in the customizer area to sort hierarchy of an image widget and have it reflect on the actual page.

Like the way reordering of this widget stack reflects on the front end after ajax reload. The widget there is the "Dube DPM widget".

  • @WebElaine this is my first plugin for an image column widget with sortable order. I have have written the jquery code for sorting the images but I don't know how to communicate it to WordPress. – Izuorah Dubem Apr 7 '17 at 19:06
  • This related answer may help: wordpress.stackexchange.com/questions/63968/… – WebElaine Apr 7 '17 at 19:08
  • @WebElaine thanks, I have already enqueued the script – Izuorah Dubem Apr 7 '17 at 19:15
0

I found that scripts for widget only work when included inline in the php file. Note: An external Js file might work for other dog elements outside the customizer area, but it is impossible to reference the dom elements in the customizer area.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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