Hi there. I want to add SORTABLE jquery to a site. Can you help me, i’m doing something wrong…
What i’m trying to emplement:
https://johnny.github.io/jquery-sortable/
Here is my code:
child theme functions.php:
wp_register_script( 'jquery-sortable', 'https://my-site/wp-content/themes/pro-child/js/jquery-sortable-min.js', null, null, true );
wp_enqueue_script('jquery-sortable');
Global Theme Options JS:
jQuery(document).ready(function($) {
  $("ol.example").sortable();
}
Global Theme Options CSS:
body.dragging, body.dragging * {
  cursor: move !important;
}
.dragged {
  position: absolute;
  opacity: 0.5;
  z-index: 2000;
}
ol.example li.placeholder {
  position: relative;
  /** More li styles **/
}
ol.example li.placeholder:before {
  position: absolute;
  /** Define arrowhead **/
}
HTML (in text element):
<ol class='example'>
  <li>First</li>
  <li>Second</li>
  <li>Third</li>
</ol>
Something is not working…
