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".

3
  • @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. Commented Apr 7, 2017 at 19:06
  • This related answer may help: wordpress.stackexchange.com/questions/63968/… Commented Apr 7, 2017 at 19:08
  • @WebElaine thanks, I have already enqueued the script Commented Apr 7, 2017 at 19:15

1 Answer 1

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 and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.