AshesOfOwls / jquery.shapeshift

A dynamic grid system with drag and drop functionality.
http://ashesofowls.github.com/jquery.shapeshift/
MIT License
1.67k stars 312 forks source link

Wordpress integration #15

Closed n0vecento closed 11 years ago

n0vecento commented 11 years ago

I tried to integrate shapeshift in wordpress, but, even if jquery.ui is correctly loaded, I get this alert: Query.shapeshift is trying to enable drag and drop but jQuery UI has not been included yet.

Any idea on where the problem could be?

n0vecento commented 11 years ago

As usual, immediately after I ask for help, I find the solution. I enqueued scripts in functions.php wp_enqueue_script( 'jquery-ui-core' ); wp_enqueue_script( 'jquery-ui-draggable' ); wp_enqueue_script( 'jquery-ui-droppable' ); and now it works.

AshesOfOwls commented 11 years ago

:)

gitbenb commented 11 years ago

amazing.

what about a WordPress plug in? Le 31 janv. 2013 16:27, "n0vecento" notifications@github.com a écrit :

As usual, immediately after I ask for help, I find the solution. I enqueued scripts in functions.php wp_enqueue_script( 'jquery-ui-core' ); wp_enqueue_script( 'jquery-ui-draggable' ); wp_enqueue_script( 'jquery-ui-droppable' ); and now it works.

— Reply to this email directly or view it on GitHubhttps://github.com/McPants/jquery.shapeshift/issues/15#issuecomment-12947539.