• Home
  • Archive
  • Tools
  • Contact Us
  • Forum

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
Home » Computer and Internet » How to Correctly Include jQuery-UI Effects on WordPress

By Abhishek Ghosh December 6, 2013 4:36 am Updated on December 6, 2013

How to Correctly Include jQuery-UI Effects on WordPress

Advertisement

How to correctly include jQuery-UI effects on WordPress on your existing Theme without much compromise on Page Loading Speed? It is made easy with our Guide. Those who are new, can read our previous article What is jQuery with Example. jQuery-UI effects on WordPress can be done by using some Plugins or using wp enqueue script. Here are some important articles which are directly or indirectly related or can be used with this guide on how to correctly include jQuery-UI effects on WordPress :

 

  1. Handy Guide for WP Enqueue Script For WordPress Themes
  2. Eliminate Render-blocking Javascript and CSS WordPress
  3. Transient and WordPress
  4. Why My WordPress is So Slow?

 

How to correctly include jQuery-UI effects on WordPress : Introduction

 

jQuery UI is an extension of free JavaScript library jQuery and provides solutions to design and add functionality of the user interface. jQuery UI was released in September 2007, announced by John Resig on jquery.com. The latest release, 1.10.1, requires jQuery 1.6 or later. jQuery UI uses Grunt js.

Interactions :

  • Draggable and Droppable – allows Drag and Drop
  • Resizable – allows the user to magnify an element in and out
  • Selectable – Advanced functionality for marking elements
  • Sortable – adds functionality for sorting of similar items

Effects :

The underlying jQuery framework already offers some effects which jQuery UI extends :

  • Color animation
  • Animation of a class – animates the change of a style sheet class
  • Blend effects
  • Widgets

Widgets are pre-programmed solutions for Web developers who want to use common elements of user interfaces:

  • Autocomplete
  • Provides a function for auto-completion of text fields, also alaviable via Ajax
    Button
  • Provides an interface for providing common buttons designs
  • DatePicker
  • Provides a menu to select a date ready dialogue
  • Offers the possibility of adding a dialog box
  • Provides an interface for displaying a progress bar
  • Provides a slider
  • Tabs
  • Gives the developer the option tabs represent
  • Accordion
  • Represents a type of folding with certain elements for automatically extend and retract
How to Correctly Include jQuery-UI Effects on WordPress
Advertisement

---

Official website and repo of sourcecode :

 

Vim
1
http://jqueryui.com/

Vim
1
#repository

Vim
1
https://github.com/jquery/jquery-ui

Vim
1
#Demo

Vim
1
http://jqueryui.com/demos/

How to correctly include jQuery-UI effects on WordPress : Options to include

 

There are Plugins for WordPress like –

 

Vim
1
http://wordpress.org/plugins/jquery-ui-widgets/

 

However, we will suggest to use methods described in the guide WP Enqueue Script For WordPress Themes. These method will not throw/increase the bad sort of warning – Eliminate Render-blocking Javascript in Google Page Loading Speed test. You must deliver from a CDN for quicker deliver. The fact is, all of these scripts are already registered to print in the footer. You can see wp-includes/script-loader.php for details. When you try to register the scripts again WordPress doesn’t change that :

Vim
1
2
3
wp_enqueue_script(
"myUi","https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.8/jquery-ui.min.js"
);

The workaround would be to register a new script for wp_head with those scripts as dependencies (the third parameter of wp_enqueue_script()). Do not register the scripts in another order before WordPress does it! This will affect wp-admin and probably other pages too.

So, the things goes like this :

function add_scripts(){
wp_enqueue_script( ‘jquery-ui-autocomplete’ );
}
add_action(‘wp_enqueue_scripts’, ‘add_scripts’);

Add these in header with some Header Footer sort of Plugin, most theme has some functions :

Vim
1
2
<script type='text/javascript' src='//source/wordpress/wp-includes/js/jquery/jquery.js?ver=1.9.1'></script>
<script type='text/javascript' src='http://localhost/wordpress/wp-includes/js/jquery/jquery-migrate.js?ver=1.1.1'></script>

And to footer :

Vim
1
2
3
4
5
<script type='text/javascript' src='//source/wordpress/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.10.2'></script>
<script type='text/javascript' src='//source/wordpress/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.10.2'></script>
<script type='text/javascript' src='//source/wordpress/wp-includes/js/jquery/ui/jquery.ui.position.min.js?ver=1.10.2'></script>
<script type='text/javascript' src='//source/wordpress/wp-includes/js/jquery/ui/jquery.ui.menu.min.js?ver=1.10.2'></script>
<script type='text/javascript' src='//source/wordpress/wp-includes/js/jquery/ui/jquery.ui.autocomplete.min.js?ver=1.10.2'></script>

In case, you do not want all to load :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function my_enqueue_scripts_method() {
    wp_enqueue_script('jquery');
    wp_enqueue_script('jquery-ui-core', false, array('jquery'), false, false);
    wp_enqueue_script('jquery-ui-widget', false, array('jquery'), false, false);
    wp_enqueue_script('jquery-ui-mouse', false, array('jquery'), false, false);
    wp_enqueue_script('jquery-ui-accordion', false, array('jquery'), false, false);
    wp_enqueue_script('jquery-ui-slider', false, array('jquery'), false, false);
    wp_enqueue_script('jquery-ui-tabs', false, array('jquery'), false, false);
    wp_enqueue_script('jquery-ui-sortable', false, array('jquery'), false, false);
    wp_enqueue_script('jquery-ui-draggable', false, array('jquery'), false, false);
    wp_enqueue_script('jquery-ui-droppable', false, array('jquery'), false, false);
    wp_enqueue_script('jquery-ui-selectable', false, array('jquery'), false, false);
    //wp_enqueue_script('jquery-ui-datepicker', false, array('jquery'), false, false);
    wp_enqueue_script('jquery-ui-resizable', false, array('jquery'), false, false);
    wp_enqueue_script('jquery-ui-dialog', false, array('jquery'), false, false);
    //wp_enqueue_script('jquery-ui-button', false, array('jquery'), false, false);
}
add_action('wp_enqueue_scripts', 'my_enqueue_scripts_method', 1);

Tagged With how to engue jquery-ui-draggable in wordpres , jquery , wordpress jquery ui
Facebook Twitter Google+ Pinterest

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Google Plus - Abhishek Ghosh1 and on Twitter - @AbhishekCTRL.

Follow the Author of this article :

13.7K+ Followers 18.7K+ Followers 2.5K+ Followers 1.5K Followers

Here’s what we’ve got for you which might like :

Articles Related to How to Correctly Include jQuery-UI Effects on WordPress

  • YouTube One Channel Design Guide With Free PSD

    YouTube One Channel Design requires a redesigning of your YouTube Channel for better branding. Here are links to official specs plus free PSD with guide to use.

  • HTML5 : Vocabulary and Interfaces

    HTML5 can be difficult to understand at high end usage. Basic usage of HTML5 is otherwise easy. Here is a list of Vocabulary and Interfaces for HTML5.

  • Planning and Using Responsive AdSense Ad Unit

    Planning and Using Responsive AdSense Ad Unit is crucial step because we are going to target the same place with three or more AdSense Ad Unit. Here is how.

  • WordPress Optimization Tricks : The PHP Files

    WordPress optimization tricks offers you some uncommon and common hacks to optimize the Page Loading speed specific to WordPress files only.

  • Company Formation and Ownership : Why, When and What

    Company Formation and Ownership is possibly unknown to many intelligent peoples. It is quite important to know (or even if at all need so) the things around it.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Google+ or Twitter to join the conversation right now!

If you want to Advertise on our Article or want Business Partnership, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website...

 

 

Popular Articles

All articles of this Website are fully Free to read. Here are some, which possibly you'll like to read! Do not hesitate to contact us for any concern.

Contact Us

Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Recent Posts

  • Arduino : IR Obstacle Detection Sensor For Dimming LED (Stop Event Facing Obstacle) April 24, 2018
  • Approaches of Deep Learning : Part 3 April 24, 2018
  • Regular IR Distance Sensor Vs Sharp IR Distance Sensor (Arduino, Pi) April 24, 2018
  • Fight Increasing Hacking Attempts on Cloud Telephony & VoIP April 23, 2018
  • Arduino IR Obstacle Sensor Buzzer With LED April 23, 2018

About This Article

Title: How to Correctly Include jQuery-UI Effects on WordPress
December 6, 2013
Author: Abhishek Ghosh
Subjects: Computer and Internet, WordPress and SEO
Is Part Of:

TheCustomizeWindows, December 6, 2013, Vol.1(01),
p.1–39075 [IoT Ready Journal]

Source:The Customize Windows
ISSN: 0019-5847 ;
E-ISSN: 0019-5847 ;
Publisher: jima.in

Cite this article as: Abhishek Ghosh, "How to Correctly Include jQuery-UI Effects on WordPress," in The Customize Windows, December 6, 2013, April 25, 2018, https://thecustomizewindows.com/2013/12/how-to-correctly-include-jquery-ui-effects-on-wordpress/.
This website uses cookies.

Read Cookie Policy

Contents are copyright protected and reproduction demands our permission.


PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

web analysis

Copyright © 2018 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy